CVE-2017-9462Mercurial
High 8.8 High EPSS
Follow: this CVE · Mercurial · Mercurial We alert you by email or Slack (account required).
- Priority
- 55
- CVSS 3.1
- 8.8
- EPSS
- 21.7% probability of exploitation in 30 days · percentile 98
- Auth required
- Yes
- Published
- Jun 6, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-732
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Mercurial.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mercurial |
< 4.1.3 |
4.1.3 |
pip install "mercurial>=4.1.3" |
| PyPI | mercurial |
< 4.1.3 |
4.1.3 |
pip install "mercurial>=4.1.3" |
Per OSV / GitHub Advisories (GHSA-ghjx-3jg5-h6r2, PYSEC-2017-91). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mercurial | mercurial | < 4.1.3 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
| redhat | enterprise_linux_desktop | 6.0 |
| redhat | enterprise_linux_desktop | 7.0 |
| redhat | enterprise_linux_server | 6.0 |
| redhat | enterprise_linux_server | 7.0 |
| redhat | enterprise_linux_server_aus | 7.3 |
| redhat | enterprise_linux_server_aus | 7.4 |
| redhat | enterprise_linux_server_aus | 7.6 |
| redhat | enterprise_linux_server_eus | 7.3 |
| redhat | enterprise_linux_server_eus | 7.4 |
| redhat | enterprise_linux_server_eus | 7.5 |
| redhat | enterprise_linux_server_eus | 7.6 |
| redhat | enterprise_linux_server_tus | 7.3 |
| redhat | enterprise_linux_server_tus | 7.6 |
| redhat | enterprise_linux_workstation | 6.0 |
| redhat | enterprise_linux_workstation | 7.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.debian.org Third Party Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- access.redhat.com Third Party Advisory
- bugs.debian.org Issue Tracking Mailing List Patch
- lists.debian.org Mailing List Third Party Advisory
- security.gentoo.org Third Party Advisory
- www.mercurial-scm.org Mailing List Vendor Advisory
- www.mercurial-scm.org Release Notes Vendor Advisory