CVE-2017-17458
highpriority · track · 41EPSS 0.063 · 94 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 9–10
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (11)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-6v56-cpg6-3rpxMercurial vulnerable to arbitrary code injection2022-05-13ghsa · osvUS
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.
- PYSEC-2017-902017-12-07vendor · osvUS
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.
also known as (7)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (29)
External citations — patches, advisories, analysis.
- http://www.securityfocus.com/bid/102926cnnvd
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730cnnvd
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2017/12/msg00027.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2018/07/msg00005.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2018/07/msg00041.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.htmlcnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.2627/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan