CVE-2017-9462

high
Published 2017-06-06 ยท Modified 2023-11-08
CVSS v3
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
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 with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Metasploit modules

Mercurial Custom hg-ssh Wrapper Remote Code Exec
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

redhat Red Hat Affected 2 releases
VersionStatusFixed in
7.0 Affected โ€”
6.0 Affected โ€”
suse SUSE Affected 1 release
VersionStatusFixed in
โ€” Affected โ€”
debian Debian Mixed 7 releases
VersionStatusFixed 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

EcosystemPackageVulnerableFixed
python PyPImercurial<4.1.34.1.3

Application impact

VendorProductVersionsFixed
mercurialmercurial{"endExcluding":"4.1.3"}4.1.3

References

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.