CVE-2018-13347
CRITICAL 9.8CVSS 3.0Mercurial mishandles integer addition and subtraction
mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.
- Published
- 6 Jul 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-190
- Also known as
- GHSA-3mjj-mr4f-qxmxPYSEC-2018-89
- Sources
- NVDJSONOSV GHSA-3mjj-mr4f-qxmxJSONOSV PYSEC-2018-89JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mercurial | mercurialcpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:* |
< 4.6.1 | 4.6.1 |
| OSV | PyPI | mercurial | < 4.6.1 | 4.6.1 |
References
- https://access.redhat.com/errata/RHSA-2019:2276 · WEB, ADVISORY
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html · WEB
- https://www.mercurial-scm.org/repo/hg-committed/log?rev=modifies%28%22mercurial%2Fmpatch.c%22%29+and+4.5%3A%3A · Patch, Vendor Advisory, WEB
- https://www.mercurial-scm.org/repo/hg/rev/1acfc35d478c · Patch, Vendor Advisory, WEB
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29 · Release Notes, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-13347 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-89.yaml · WEB
- https://github.com/advisories/GHSA-3mjj-mr4f-qxmx · ADVISORY
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 6 Jul 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 6 Jul 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)