CVE-2017-9462
high
CVSS v3
8.8
CVSS v4 NEW
โ
VIR risk
9.8
Description
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.
Predictions
Exploit likelihood
100%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Metasploit modules
Source fetch failed: fetch_error โ view the original via the link above.
OS impact
Red Hat Affected 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 7.0 | Affected | โ |
| 6.0 | Affected | โ |
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Debian Mixed 7 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 4.3.1-1 |
| sid | Fixed | 4.3.1-1 |
| forky | Fixed | 4.3.1-1 |
| bullseye | Fixed | 4.3.1-1 |
| bookworm | Fixed | 4.3.1-1 |
| 9.0 | Affected | โ |
| 8.0 | Affected | โ |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | mercurial | <4.1.3 | 4.1.3 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| mercurial | mercurial | {"endExcluding":"4.1.3"} | 4.1.3 |
References
- http://www.debian.org/security/2017/dsa-3963
- http://www.securityfocus.com/bid/99123
- https://access.redhat.com/errata/RHSA-2017:1576
- https://bugs.debian.org/861243
- https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html
- https://security.gentoo.org/glsa/201709-18
- https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.1.3_.282017-4-18.29
- https://nvd.nist.gov/vuln/detail/CVE-2017-9462
- https://github.com/advisories/GHSA-ghjx-3jg5-h6r2
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-91.yaml
- https://web.archive.org/web/20200227162318/http://www.securityfocus.com/bid/99123
- https://www.suse.com/security/cve/CVE-2017-9462.html
- https://security-tracker.debian.org/tracker/CVE-2017-9462
CWEs
CWE-732
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.