CVE-2017-17458 · mitre
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.
Published 2017-12-07, last changed 2026-06-17. Weakness: CWE-78.
How to fix
Upgrade to a fixed version: mercurial 4.4.1 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-12-07 | Published |
| 2017-12-07 | Package advisory PYSEC-2017-90 |
| 2022-05-13 | Package advisory GHSA-6v56-cpg6-3rpx |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 6.39% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-6v56-cpg6-3rpx | mercurial (PyPI) | 4.4.1 |
| PYSEC-2017-90 | mercurial (PyPI) | 4.4.1 |
Also known as: GHSA-6v56-cpg6-3rpx, PYSEC-2017-90
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2014-9390 | 2020-02-12 | 9.8 | same package: mercurial (PyPI) |
| CVE-2010-4237 | 2019-10-29 | 5.9 | same package: mercurial (PyPI) |
| CVE-2019-3902 | 2019-04-22 | 5.9 | same package: mercurial (PyPI) |
| CVE-2018-17983 | 2018-10-04 | 9.1 | same package: mercurial (PyPI) |
| CVE-2018-13348 | 2018-07-06 | 7.5 | same package: mercurial (PyPI) |
| CVE-2018-13347 | 2018-07-06 | 9.8 | same package: mercurial (PyPI) |
| CVE-2018-13346 | 2018-07-06 | 7.5 | same package: mercurial (PyPI) |
| CVE-2018-1000132 | 2018-03-14 | 9.1 | same package: mercurial (PyPI) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-17458, or call /api/v1/vulnerabilities/CVE-2017-17458. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.