CVE-2017-9462 · mitre
CVE-2017-9462
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and consequently execute arbitrary code, by using --debugger as a repository name.
Published 2017-06-06, last changed 2026-06-17. Weakness: CWE-732.
Public exploits
| Source | Kind | Reference |
|---|---|---|
| metasploit | exploit-module | exploit/linux/ssh/mercurial_ssh_exec |
How to fix
Upgrade to a fixed version: mercurial 4.1.3 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-06-06 | Published |
| 2017-06-06 | Package advisory PYSEC-2017-91 |
| 2018-07-13 | Package advisory GHSA-ghjx-3jg5-h6r2 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 21.7% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-ghjx-3jg5-h6r2 | mercurial (PyPI) | 4.1.3 |
| PYSEC-2017-91 | mercurial (PyPI) | 4.1.3 |
Also known as: GHSA-ghjx-3jg5-h6r2, PYSEC-2017-91
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-9462, or call /api/v1/vulnerabilities/CVE-2017-9462. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.