
CVE catalog
CVE-2018-13348
mercurial: CVE-2018-13348
- Severity
- Medium · CVSS 5.3
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.10% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | mercurial | sid | 7.2.4-2 | fixed |
| Debian | mercurial | forky | 7.2.4-2 | fixed |
| Debian | mercurial | trixie | 7.0.1-2 | fixed |
| Debian | mercurial | bookworm | 6.3.2-1+deb12u1 | fixed |
| Debian | mercurial | bookworm-security | 6.3.2-1+deb12u1 | fixed |
| Ubuntu | mercurial | 14.04 | 2.6.3-1 | vulnerable |
| Ubuntu | mercurial | 14.04 | 2.7.2-1 | vulnerable |
| Ubuntu | mercurial | 14.04 | 2.8.1-2 | vulnerable |
| Ubuntu | mercurial | 14.04 | 2.8.2-1ubuntu1 | vulnerable |
| Ubuntu | mercurial | 14.04 | 2.8.2-1ubuntu1.3 | vulnerable |
| Ubuntu | mercurial | 14.04 | 2.8.2-1ubuntu1.4 | fixed |
| Ubuntu | mercurial | 16.04 | 3.4-1ubuntu2 | vulnerable |
| Ubuntu | mercurial | 16.04 | 3.6.2-1ubuntu2 | vulnerable |
| Ubuntu | mercurial | 16.04 | 3.7.3-1ubuntu1 | vulnerable |
| Ubuntu | mercurial | 16.04 | 3.7.3-1ubuntu1.1 | fixed |
| Ubuntu | mercurial | 18.04 | 4.3.1-2 | vulnerable |
| Ubuntu | mercurial | 18.04 | 4.5-1ubuntu1 | vulnerable |
| Ubuntu | mercurial | 18.04 | 4.5.2-0ubuntu2 | vulnerable |
| Ubuntu | mercurial | 18.04 | 4.5.3-1ubuntu2 | vulnerable |
| Ubuntu | mercurial | 18.04 | 4.5.3-1ubuntu2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | mercurial | source | sid | 4.6.1-1 | not yet assigned | Not reported | [901050] |
| Debian | mercurial | source | forky | 4.6.1-1 | not yet assigned | Not reported | [901050] |
| Debian | mercurial | source | trixie | 4.6.1-1 | not yet assigned | Not reported | [901050] |
| Debian | mercurial | source | bookworm | 4.6.1-1 | not yet assigned | Not reported | [901050] |
| Ubuntu | mercurial | deb | 14.04 | 2.8.2-1ubuntu1.4 | Not reported | UBUNTU-CVE-2018-13348 | Not reported |
| Ubuntu | mercurial | deb | 16.04 | 3.7.3-1ubuntu1.1 | Not reported | UBUNTU-CVE-2018-13348 | Not reported |
| Ubuntu | mercurial | deb | 18.04 | 4.5.3-1ubuntu2.1 | Not reported | UBUNTU-CVE-2018-13348 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [mercurial]Fixed
Details (4)
6.3.2-1+deb12u1· amd64 · bookwormFixed · Fixed:
4.6.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· arm64 · bookwormFixed · Fixed:
4.6.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
4.6.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
4.6.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
- [mercurial-common]Fixed
Source package: [mercurial]
Details (4)
6.3.2-1+deb12u1· all · bookwormFixed · Fixed:
4.6.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· all · bookwormFixed · Fixed:
4.6.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· all · bookworm-securityFixed · Fixed:
4.6.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· all · bookworm-securityFixed · Fixed:
4.6.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
[Debian 13 (Trixie)]
- [mercurial]Fixed
Details (2)
7.0.1-2· amd64 · trixieFixed · Fixed:
4.6.1-1dsa · mercurial · debian · 13
7.0.1-2· arm64 · trixieFixed · Fixed:
4.6.1-1dsa · mercurial · debian · 13
- [mercurial-common]Fixed
Source package: [mercurial]
Details (2)
7.0.1-2· all · trixieFixed · Fixed:
4.6.1-1dsa · mercurial · debian · 13
7.0.1-2· all · trixieFixed · Fixed:
4.6.1-1dsa · mercurial · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2018_1990-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-13348]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-13348]
- [https://security-tracker.debian.org/tracker/CVE-2018-13348]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-13348.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]