CVE
CVE-2018-13347
publishedmercurial: Buffer underflow in mpatch.c:mpatch_apply()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | jessie | mercurial | Advisory build | 3.1.2-2+deb8u5 | DLA-1414-1 |
| Oracle Linux | 7 | emacs-mercurialaarch64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurialppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| SUSE / openSUSE | SLE-11-SP4 | mercuriali586 | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| Debian | stretch | mercurial | Advisory build | 4.0-1+deb9u2 | DLA-2293-1 |
| Oracle Linux | 7 | emacs-mercurialx86_64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | emacs-mercurial-elaarch64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
Show 37 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 7 | emacs-mercurial-elx86_64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | mercurialaarch64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | mercurialx86_64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | mercurial-hgkaarch64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | mercurial-hgkx86_64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurialppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurials390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurialx86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurial-elppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurial-elppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurial-els390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurial-elx86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurialppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurialppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurials390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurialsrc | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurialx86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-debuginfoppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-debuginfoppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-debuginfos390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-debuginfox86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-hgkppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-hgkppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-hgks390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-hgkx86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialia64 | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialppc64 | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurials390x | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialx86_64 | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialaarch64 | Advisory build | 2.8.2-15.13.1 | SUSE-SU-2018:1990-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialppc64le | Advisory build | 2.8.2-15.13.1 | SUSE-SU-2018:1990-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurials390x | Advisory build | 2.8.2-15.13.1 | SUSE-SU-2018:1990-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialx86_64 | Advisory build | 2.8.2-15.13.1 | SUSE-SU-2018:1990-1 |
| SUSE / openSUSE | SLE-15 | mercurialaarch64 | Advisory build | 4.5.2-3.3.1 | SUSE-SU-2018:1998-1 |
| SUSE / openSUSE | SLE-15 | mercurialppc64le | Advisory build | 4.5.2-3.3.1 | SUSE-SU-2018:1998-1 |
| SUSE / openSUSE | SLE-15 | mercurials390x | Advisory build | 4.5.2-3.3.1 | SUSE-SU-2018:1998-1 |
| SUSE / openSUSE | SLE-15 | mercurialx86_64 | Advisory build | 4.5.2-3.3.1 | SUSE-SU-2018:1998-1 |
Description
mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- RHSA-2019:2276 https://access.redhat.com/errata/RHSA-2019:2276
- [debian-lts-announce] 20200731 [SECURITY] [DLA 2293-1] mercurial security update https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- 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/repo/hg/rev/1acfc35d478c
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a16766be15de0be7ec3085f7499366ceb95d1ac25a099b275b7153b42c478b95
- Ingested
- 23 Sep 2026, 07:43:37 UTC
- Source record
- Official CVE record