Live threats

All CVEs / Mercurial

CVE-2017-9462Mercurial

High 8.8 High EPSS

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mercurial.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mercurialmercurial< 4.1.3
debiandebian_linux8.0
debiandebian_linux9.0
redhatenterprise_linux_desktop6.0
redhatenterprise_linux_desktop7.0
redhatenterprise_linux_server6.0
redhatenterprise_linux_server7.0
redhatenterprise_linux_server_aus7.3
redhatenterprise_linux_server_aus7.4
redhatenterprise_linux_server_aus7.6
redhatenterprise_linux_server_eus7.3
redhatenterprise_linux_server_eus7.4
redhatenterprise_linux_server_eus7.5
redhatenterprise_linux_server_eus7.6
redhatenterprise_linux_server_tus7.3
redhatenterprise_linux_server_tus7.6
redhatenterprise_linux_workstation6.0
redhatenterprise_linux_workstation7.0

Official sources

References

Links published by the sources. Open them with care.