# CVE-2017-9462

- Priority: **Prioritise**
- Reason: Weaponized exploit (Metasploit, 18-04-2017)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2017-06-06 · Modified: 2024-08-05
- Aliases: MGASA-2017-0182, SUSE-SU-2017:1558-1, SUSE-SU-2017:1606-1, GHSA-ghjx-3jg5-h6r2, PYSEC-2017-91, RHSA-2017:1576, UBUNTU-CVE-2017-9462, DEBIAN-CVE-2017-9462, DLA-1005-1
- Record: https://cvemate.com/vulnerability/CVE-2017-9462 · JSON: https://cvemate.com/vulnerability/CVE-2017-9462/json

## Description

```text
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.
```

## Signals

- CVSS: 9 high (v2.0, NVD) AV:N/AC:L/Au:S/C:C/I:C/A:C
- EPSS: 21.685%, percentile 97.697%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (metasploit)

## Affected

- debian mercurial (Debian): \< 4.3.1-1 \| \< 2.2.2-4+deb7u4
- ubuntu mercurial (Ubuntu): \< 2.8.2-1ubuntu1.4 \| \< 3.7.3-1ubuntu1.1
- debian debian\_linux: 8.0 \| 9.0
- mageia mercurial (Mageia): \< 3.1.1-5.3.mga5
- mercurial mercurial: \< 4.1.3
- PyPI mercurial (PyPI): \< 4.1.3
- redhat enterprise\_linux\_desktop: 6.0 \| 7.0
- redhat enterprise\_linux\_server: 6.0 \| 7.0
- redhat enterprise\_linux\_server\_aus: 7.3 \| 7.4 \| 7.6
- redhat enterprise\_linux\_server\_eus: 7.3 \| 7.4 \| 7.5 \| 7.6
- redhat enterprise\_linux\_server\_tus: 7.3 \| 7.6
- redhat enterprise\_linux\_workstation: 6.0 \| 7.0
- redhat emacs-mercurial (Red Hat): \< 0:1.4-5.el6\_9 \| \< 0:2.6.2-7.el7\_3
- redhat emacs-mercurial-el (Red Hat): \< 0:1.4-5.el6\_9 \| \< 0:2.6.2-7.el7\_3
- redhat mercurial (Red Hat): \< 0:1.4-5.el6\_9 \| \< 0:2.6.2-7.el7\_3
- redhat mercurial-debuginfo (Red Hat): \< 0:1.4-5.el6\_9 \| \< 0:2.6.2-7.el7\_3
- redhat mercurial-hgk (Red Hat): \< 0:1.4-5.el6\_9 \| \< 0:2.6.2-7.el7\_3
- suse mercurial&distro=SUSE Linux Enterprise Software Development Kit 11 SP4 (SUSE Linux Enterprise): \< 2.3.2-0.17.1
- suse mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP2 (SUSE Linux Enterprise): \< 2.8.2-14.1

## References (first 20 of 27)

- <https://access.redhat.com/errata/RHSA-2017:1576>
- <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://lists.debian.org/debian-lts-announce/2018/07/msg00005.html>
- <http://www.debian.org/security/2017/dsa-3963>
- <https://security.gentoo.org/glsa/201709-18>
- <https://bugs.debian.org/861243>
- <http://www.securityfocus.com/bid/99123>
- <https://advisories.mageia.org/MGASA-2017-0182.html>
- <https://bugs.mageia.org/show_bug.cgi?id=20849>
- <https://lists.opensuse.org/opensuse-security-announce/2017-06/msg00007.html>
- <https://www.suse.com/support/update/announcement/2017/suse-su-20171558-1/>
- <https://bugzilla.suse.com/1043063>
- <https://bugzilla.suse.com/1043502>
- <https://www.suse.com/security/cve/CVE-2017-9462>
- <https://www.suse.com/support/update/announcement/2017/suse-su-20171606-1/>
- <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>

---

Data as of 2026-12-05T06:39:58.583Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
