# CVE-2018-13348

- 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-3v62-ww8w-758m, PYSEC-2018-90, UBUNTU-CVE-2018-13348, DEBIAN-CVE-2018-13348
- Record: https://cvemate.com/vulnerability/CVE-2018-13348 · JSON: https://cvemate.com/vulnerability/CVE-2018-13348/json

## Description

```text
The mpatch_decode function in mpatch.c in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not, aka OVE-20180430-0001.
```

## 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.145%, percentile 82.697%, 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/rev/90a274965de7>
- <https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29>
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-13348>
- <https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-90.yaml>
- <https://github.com/advisories/GHSA-3v62-ww8w-758m>
- <https://ubuntu.com/security/CVE-2018-13348>
- <https://www.cve.org/CVERecord?id=CVE-2018-13348>
- <https://security-tracker.debian.org/tracker/CVE-2018-13348>

---

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