CVEfocus › CVE database › CVE-2018-13347

CVE-2018-13347

CVSS 9.8 CriticalEPSS 2.7% (higher than 86% of CVEs)Published 2018-07-06Updated 2024-08-05Assigner: mitre

mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.

What to do

Fixed builds are available from Debian, PyPI, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

11Fixed
4Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04mercurialFixed4.5.3-1ubuntu2.1UBUNTU-CVE-2018-13347
Ubuntu 16.04mercurialFixed3.7.3-1ubuntu1.1UBUNTU-CVE-2018-13347
Ubuntu 14.04mercurialFixed2.8.2-1ubuntu1.4UBUNTU-CVE-2018-13347
Debian 14mercurialFixed4.6.1-1DEBIAN-CVE-2018-13347
Debian 13mercurialFixed4.6.1-1DEBIAN-CVE-2018-13347
Debian 12mercurialFixed4.6.1-1DEBIAN-CVE-2018-13347
Red Hat Enterprise Linux 8mercurialNot affected
Red Hat Enterprise Linux 8mercurial-chgNot affected
Red Hat Enterprise Linux 8mercurial-hgkNot affected
Red Hat Enterprise Linux 7emacs-mercurialFixed0:2.6.2-10.el7RHSA-2019:2276
Red Hat Enterprise Linux 7emacs-mercurial-elFixed0:2.6.2-10.el7RHSA-2019:2276
Red Hat Enterprise Linux 7mercurialFixed0:2.6.2-10.el7RHSA-2019:2276
Red Hat Enterprise Linux 7mercurial-hgkFixed0:2.6.2-10.el7RHSA-2019:2276
Red Hat Enterprise Linux 6emacs-mercurialWill not fix
Will not fix
Red Hat Enterprise Linux 6emacs-mercurial-elWill not fix
Will not fix
Red Hat Enterprise Linux 6mercurialWill not fix
Will not fix
Red Hat Enterprise Linux 6mercurial-hgkWill not fix
Will not fix
PyPI librarymercurialFixed4.6.1GHSA-3mjj-mr4f-qxmx

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.