
CVE catalog
CVE-2018-13346
mercurial: CVE-2018-13346
- 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.36% · Oct 25, 2026
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.
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 |
| Suse | mercurial | linux enterprise module for development tools 15 | 4.5.2-3.3.1 | fixed |
| Suse | mercurial | linux enterprise software development kit 11 sp4 | 2.3.2-0.18.9.1 | fixed |
| Suse | mercurial | linux enterprise software development kit 12 sp3 | 2.8.2-15.13.1 | 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] |
| Suse | mercurial | rpm | linux enterprise module for development tools 15 | 4.5.2-3.3.1 | Not reported | SUSE-SU-2018:1998-1 | Not reported |
| Suse | mercurial | rpm | linux enterprise software development kit 11 sp4 | 2.3.2-0.18.9.1 | Not reported | SUSE-SU-2018:1996-1 | Not reported |
| Suse | mercurial | rpm | linux enterprise software development kit 12 sp3 | 2.8.2-15.13.1 | Not reported | SUSE-SU-2018:1990-1 | Not reported |
| Ubuntu | mercurial | deb | 14.04 | 2.8.2-1ubuntu1.4 | Not reported | UBUNTU-CVE-2018-13346 | Not reported |
| Ubuntu | mercurial | deb | 16.04 | 3.7.3-1ubuntu1.1 | Not reported | UBUNTU-CVE-2018-13346 | Not reported |
| Ubuntu | mercurial | deb | 18.04 | 4.5.3-1ubuntu2.1 | Not reported | UBUNTU-CVE-2018-13346 | 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/rhsa-2019_2276.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-13346]
- [https://osv.dev/vulnerability/SUSE-SU-2018:1990-1]
- [https://osv.dev/vulnerability/SUSE-SU-2018:1996-1]
- [https://osv.dev/vulnerability/SUSE-SU-2018:1998-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-13346]
- [https://security-tracker.debian.org/tracker/CVE-2018-13346]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-13346.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2019/wid-sec-w-2022-0517.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]