CVE-2017-17458
CRITICAL 9.8CVSS 3.0Mercurial vulnerable to arbitrary code injection
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.
- Published
- 7 Dec 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-6v56-cpg6-3rpxPYSEC-2017-90
- Sources
- NVDJSONOSV GHSA-6v56-cpg6-3rpxJSONOSV PYSEC-2017-90JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mercurial | mercurialcpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:* |
< 4.4.1 | 4.4.1 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | PyPI | mercurial | < 4.4.1 | 4.4.1 |
References
- http://www.securityfocus.com/bid/102926 · Third Party Advisory, VDB Entry, WEB
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730 · Issue Tracking, Third Party Advisory, WEB
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html · Third Party Advisory, WEB, ADVISORY
- https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html · Mailing List, Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html · WEB
- https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html · Vendor Advisory, WEB
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-17458 · ADVISORY
- https://github.com/dscho/hg · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-90.yaml · WEB
- https://web.archive.org/web/20200227132808/http://www.securityfocus.com/bid/102926 · WEB
- https://github.com/advisories/GHSA-6v56-cpg6-3rpx · ADVISORY
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 7 Dec 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Dec 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)