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.
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | mercurial | < 4.6.1 | 4.6.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-13346
- https://access.redhat.com/errata/RHSA-2019:2276
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-88.yaml
- 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
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-20- Platform
- Python (PyPI)
- Package
mercurial- Disclosed
- 06.07.2018
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-9xv4-r2hf-26gh - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2018-88 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: mercurial
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 18
- First → latest
- 03.2015 05.2022
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 6
- High 9
- Medium 3
Disclosures per year
- 2017: 4
- 2018: 5
- 2019: 1
- 2020: 1
- 2021: 0
- 2022: 2
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
earlier: 5
-
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. this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.