# CVE-2018-13347

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 4.6.1 (CNA); fix release not confirmed
- Status: published
- Published: 2018-07-06 · Modified: 2024-08-05
- Aliases: GHSA-3mjj-mr4f-qxmx, PYSEC-2018-89, UBUNTU-CVE-2018-13347, DEBIAN-CVE-2018-13347
- Record: https://cvemate.com/vulnerability/CVE-2018-13347 · JSON: https://cvemate.com/vulnerability/CVE-2018-13347/json

## Description

```text
mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.
```

## Signals

- CVSS: 9.8 critical (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.717%, percentile 86.498%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian mercurial (Debian): \< 4.6.1-1
- ubuntu mercurial (Ubuntu): \< 2.8.2-1ubuntu1.4 \| \< 3.7.3-1ubuntu1.1 \| \< 4.5.3-1ubuntu2.1
- mercurial mercurial: \< 4.6.1
- PyPI mercurial (PyPI): \< 4.6.1

## References

- <https://www.mercurial-scm.org/repo/hg-committed/log?rev=modifies%28%22mercurial%2Fmpatch.c%22%29+and+4.5%3A%3A>
- <https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29>
- <https://www.mercurial-scm.org/repo/hg/rev/1acfc35d478c>
- <https://access.redhat.com/errata/RHSA-2019:2276>
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-13347>
- <https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-89.yaml>
- <https://github.com/advisories/GHSA-3mjj-mr4f-qxmx>
- <https://ubuntu.com/security/CVE-2018-13347>
- <https://www.cve.org/CVERecord?id=CVE-2018-13347>
- <https://security-tracker.debian.org/tracker/CVE-2018-13347>

---

Data as of 2026-12-05T03:54:28.764Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
