In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | mercurial (PyPI) | before 4.4.1 | 4.4.1 | Patch available | GHSA-6v56-cpg6-3rpx |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- mercurial (PyPI) Vendor— Affected before 4.4.1 Fixed in 4.4.1 Patch available GHSA-6v56-cpg6-3rpx
Remediation
- Fix · GHSA-6v56-cpg6-3rpx mercurial (PyPI) Fixed in 4.4.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2017-17458
- 2026-10-03 Alias added: GHSA-6v56-cpg6-3rpx
References
Advisory 8
- [debian-lts-announce] 20171228 [SECURITY] [DLA 1224-1] mercurial security update
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29
- [debian-lts-announce] 20180727 [SECURITY] [DLA 1414-2] mercurial regression update
- [debian-lts-announce] 20180705 [SECURITY] [DLA 1414-1] mercurial security update
- https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html
- https://nvd.nist.gov/vuln/detail/CVE-2017-17458
Sources
- CVE-2017-17458 · CVE Program
- CVE-2017-17458 · NVD
- FIRST EPSS
- GHSA-6v56-cpg6-3rpx · GitHub Advisory Database · CC BY 4.0
- CVE-2017-17458 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences