# CVE-2018-13346

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (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-9xv4-r2hf-26gh, PYSEC-2018-88, UBUNTU-CVE-2018-13346, DEBIAN-CVE-2018-13346
- Record: https://cvemate.com/vulnerability/CVE-2018-13346 · JSON: https://cvemate.com/vulnerability/CVE-2018-13346/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 2.365%, percentile 84.341%, 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/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29>
- <https://www.mercurial-scm.org/repo/hg/rev/faa924469635>
- <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-13346>
- <https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-88.yaml>
- <https://github.com/advisories/GHSA-9xv4-r2hf-26gh>
- <https://ubuntu.com/security/CVE-2018-13346>
- <https://www.cve.org/CVERecord?id=CVE-2018-13346>
- <https://security-tracker.debian.org/tracker/CVE-2018-13346>

---

Data as of 2026-12-05T04:18:22.847Z. 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
