CVE-2017-9462
high
CVSS v3
8.8
CVSS v2
9.0
VIR risk
8.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
92%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-9462
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2017-9462.html
Vendor advisory: cve@mitre.org — https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.1.3_.282017-4-18.29
Vendor advisory: cve@mitre.org — https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499
Vendor advisory: cve@mitre.org — https://bugs.debian.org/861243
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | 8.0 | affected | |
| debian | 9.0 | affected | |
| rhel | 6.0 | affected | |
| rhel | 7.0 | affected | |
| debian | bookworm | fixed | 4.3.1-1 |
| debian | bullseye | fixed | 4.3.1-1 |
| debian | forky | fixed | 4.3.1-1 |
| debian | sid | fixed | 4.3.1-1 |
| debian | trixie | fixed | 4.3.1-1 |
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
Verify integrity in audit chain (admin only). AS-IS.