cve.bz

CVE-2017-9462

8.8 highExploitEPSS 22%Fix available

High (8.8). EPSS 22% estimated probability of exploitation activity in the next 30 days. Fixed in mercurial 4.1.3.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
22% (unchanged from 22% a week ago; 22% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-732 Incorrect Permission Assignment for Critical Resource
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-9462 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-9462?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-9462?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-9462 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mercurial:mercurialbefore 4.1.3
debian:debian_linux8.0
debian:debian_linux9.0
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.3
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_eus7.3
redhat:enterprise_linux_server_eus7.4
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_server_eus7.6
redhat:enterprise_linux_server_tus7.3
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-ghjx-3jg5-h6r2PyPImercurial<4.1.34.1.3
PYSEC-2017-91PyPImercurial<4.1.34.1.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7mercurial2.2.2-4+deb7u4DLA-1005-1
Debian8mercurial3.1.2-2+deb8u5DLA-1414-1
Debian12, 13, 14mercurial4.3.1-1DEBIAN-CVE-2017-9462
Ubuntu14.04:LTSmercurial2.8.2-1ubuntu1.4UBUNTU-CVE-2017-9462
Ubuntu16.04:LTSmercurial3.7.3-1ubuntu1.1UBUNTU-CVE-2017-9462
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moremercurial, mercurial-hgk, emacs-mercurial and 2 more0:1.4-5.el6_9RHSA-2017:1576
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moremercurial, mercurial-hgk, emacs-mercurial and 2 more0:2.6.2-7.el7_3RHSA-2017:1576
SUSELinux Enterprise Software Development Kit 11 SP4mercurial2.3.2-0.17.1SUSE-SU-2017:1558-1
SUSELinux Enterprise Software Development Kit 12 SP2mercurial2.8.2-14.1SUSE-SU-2017:1606-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6mercurial-0:1.4-5.el6_9Fixed 2017-06-27RHSA-2017:1576
Red Hat Enterprise Linux 7mercurial-0:2.6.2-7.el7_3Fixed 2017-06-27RHSA-2017:1576

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-9462.

Public exploits

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON