CVEfocus › CVE database › CVE-2017-17458

CVE-2017-17458

CVSS 9.8 CriticalEPSS 6.3% (higher than 94% of CVEs)Published 2017-12-07Updated 2024-08-05Assigner: mitre

In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.

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

6Fixed
8Will not fix

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 16.04mercurialFixed3.7.3-1ubuntu1.1UBUNTU-CVE-2017-17458
Ubuntu 14.04mercurialFixed2.8.2-1ubuntu1.4UBUNTU-CVE-2017-17458
Debian 14mercurialFixed4.4.1-1DEBIAN-CVE-2017-17458
Debian 13mercurialFixed4.4.1-1DEBIAN-CVE-2017-17458
Debian 12mercurialFixed4.4.1-1DEBIAN-CVE-2017-17458
Red Hat Enterprise Linux 7emacs-mercurialWill not fix
Will not fix
Red Hat Enterprise Linux 7emacs-mercurial-elWill not fix
Will not fix
Red Hat Enterprise Linux 7mercurialWill not fix
Will not fix
Red Hat Enterprise Linux 7mercurial-hgkWill not fix
Will not fix
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.4.1GHSA-6v56-cpg6-3rpx

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.