CVE-2018-13346
HIGH7.5EPSS 0.29%Mercurial Improper Input Validation vulnerability
Published: 5/13/2022Modified: 4/28/2026
Description
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 (3)
- Debian/mercurialfrom 0, < 4.6.1-1
- PyPI/mercurialfrom 0, < 4.6.1
- PyPI/mercurialfrom 0, < 4.6.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2018-13346
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2018-13346
- WEBhttps://access.redhat.com/errata/RHSA-2019:2276
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-88.yaml
- WEBhttps://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- WEBhttps://www.mercurial-scm.org/repo/hg/rev/faa924469635
- WEBhttps://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29