high7.5
CVE-2018-13346
Mercurial Improper Input Validation vulnerability
Impact
The `mpatch_apply` function in `mpatch.c` in Mercurial before 4.6.1 incorrectly proceeds in cases where the fragment start is past the end of the original data, aka OVE-20180430-0004.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | mercurial | < 4.6.1 | 4.6.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Mercurial | Mercurial | before 4.6.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://access.redhat.com/errata/RHSA-2019:2276
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- https://www.mercurial-scm.org/repo/hg/rev/faa924469635
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29
- https://github.com/advisories/GHSA-9xv4-r2hf-26gh
- https://nvd.nist.gov/vuln/detail/CVE-2018-13346
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-88.yaml