CVE-2018-13347
mercurial: Buffer underflow in mpatch.c:mpatch_apply()
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Photon OS. Rated lower by Red Hat (medium), Oracle (medium), Ubuntu (medium).
Description
mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | mercurial | 4.5.3-2.ph1 |
| Photon OS 2.0 | mercurial | 4.5.3-2.ph2 |
| pip::GitHub Security Advisory pip | mercurial | 4.6.1 |
| debian 11 | mercurial | 4.6.1-1 |
| debian 12 | mercurial | 4.6.1-1 |
| debian 13 | mercurial | 4.6.1-1 |
| debian 14 | mercurial | 4.6.1-1 |
| debian 8 | mercurial | 3.1.2-2+deb8u5 |
| debian 9 | mercurial | 4.0-1+deb9u2 |
| echo | mercurial | 4.6.1-1 |
| Oracle Linux 7 | emacs-mercurial, emacs-mercurial-el, mercurial and 1 more | 2.6.2-10.el7 |
| Red Hat | emacs-mercurial, emacs-mercurial-el, mercurial and 1 more | no fix listed |
Show all 24 entries from 18 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | mercurial | 4.5.3-2.ph1 |
| Photon OS 2.0 | mercurial | 4.5.3-2.ph2 |
| pip::GitHub Security Advisory pip | mercurial | 4.6.1 |
| debian 11 | mercurial | 4.6.1-1 |
| debian 12 | mercurial | 4.6.1-1 |
| debian 13 | mercurial | 4.6.1-1 |
| debian 14 | mercurial | 4.6.1-1 |
| debian 8 | mercurial | 3.1.2-2+deb8u5 |
| debian 9 | mercurial | 4.0-1+deb9u2 |
| echo | mercurial | 4.6.1-1 |
| Oracle Linux 7 | emacs-mercurial | 2.6.2-10.el7 |
| Oracle Linux 7 | emacs-mercurial-el | 2.6.2-10.el7 |
| Oracle Linux 7 | mercurial | 2.6.2-10.el7 |
| Oracle Linux 7 | mercurial-hgk | 2.6.2-10.el7 |
| Red Hat | emacs-mercurial | no fix listed |
| Red Hat | emacs-mercurial-el | no fix listed |
| Red Hat | mercurial | no fix listed |
| Red Hat | mercurial-hgk | no fix listed |
| ubuntu 14.04 | mercurial | 2.8.2-1ubuntu1.4 |
| ubuntu 14.04-ESM | mercurial | 2.8.2-1ubuntu1.4 |
| ubuntu 16.04 | mercurial | 3.7.3-1ubuntu1.1 |
| ubuntu 16.04-ESM | mercurial | 3.7.3-1ubuntu1.1 |
| ubuntu 18.04 | mercurial | 4.5.3-1ubuntu2.1 |
| ubuntu 18.04-ESM | mercurial | 4.5.3-1ubuntu2.1 |
References
- https://access.redhat.com/errata/RHSA-2019:2276
- https://access.redhat.com/security/cve/CVE-2018-13347
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-89.yaml
- https://linux.oracle.com/cve/CVE-2018-13347.html
- https://linux.oracle.com/errata/ELSA-2019-2276.html
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- https://nvd.nist.gov/vuln/detail/CVE-2018-13347
- https://www.cve.org/CVERecord?id=CVE-2018-13347