CVE-2017-17458
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | mercurial | Fixed | 3.7.3-1ubuntu1.1 | UBUNTU-CVE-2017-17458 |
| Ubuntu 14.04 | mercurial | Fixed | 2.8.2-1ubuntu1.4 | UBUNTU-CVE-2017-17458 |
| Debian 14 | mercurial | Fixed | 4.4.1-1 | DEBIAN-CVE-2017-17458 |
| Debian 13 | mercurial | Fixed | 4.4.1-1 | DEBIAN-CVE-2017-17458 |
| Debian 12 | mercurial | Fixed | 4.4.1-1 | DEBIAN-CVE-2017-17458 |
| Red Hat Enterprise Linux 7 | emacs-mercurial | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | emacs-mercurial-el | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | mercurial | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | mercurial-hgk | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | emacs-mercurial | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | emacs-mercurial-el | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | mercurial | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | mercurial-hgk | Will not fix Will not fix | ||
| PyPI library | mercurial | Fixed | 4.4.1 | GHSA-6v56-cpg6-3rpx |
References
- https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29
- https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html
- https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html
- https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html
- http://www.securityfocus.com/bid/102926
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
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.