CVEfocus › CVE database › CVE-2018-13348

CVE-2018-13348

CVSS 7.5 HighEPSS 2.1% (higher than 82% of CVEs)Published 2018-07-06Updated 2024-08-05Assigner: mitre

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.

What to do

Fixed builds are available from Debian, PyPI, 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

7Fixed
11Not 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-13348
Ubuntu 16.04mercurialFixed3.7.3-1ubuntu1.1UBUNTU-CVE-2018-13348
Ubuntu 14.04mercurialFixed2.8.2-1ubuntu1.4UBUNTU-CVE-2018-13348
Debian 14mercurialFixed4.6.1-1DEBIAN-CVE-2018-13348
Debian 13mercurialFixed4.6.1-1DEBIAN-CVE-2018-13348
Debian 12mercurialFixed4.6.1-1DEBIAN-CVE-2018-13348
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-mercurialNot affected
Red Hat Enterprise Linux 7emacs-mercurial-elNot affected
Red Hat Enterprise Linux 7mercurialNot affected
Red Hat Enterprise Linux 7mercurial-hgkNot affected
Red Hat Enterprise Linux 6emacs-mercurialNot affected
Red Hat Enterprise Linux 6emacs-mercurial-elNot affected
Red Hat Enterprise Linux 6mercurialNot affected
Red Hat Enterprise Linux 6mercurial-hgkNot affected
PyPI librarymercurialFixed4.6.1PYSEC-2018-90

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.