Live threats

All CVEs / Mercurial

CVE-2017-1000116Mercurial

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
6.5%
probability of exploitation in 30 days · percentile 95
Auth required
No
Published
Oct 5, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mercurial.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI mercurial < 4.3 4.3 pip install "mercurial>=4.3"
PyPI mercurial < 4.3 4.3 pip install "mercurial>=4.3"

Per OSV / GitHub Advisories (GHSA-3qmg-c9vc-r47j, PYSEC-2017-89). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mercurialmercurial< 4.3
debiandebian_linux8.0
debiandebian_linux9.0
redhatenterprise_linux_desktop7.0
redhatenterprise_linux_server7.0
redhatenterprise_linux_server_aus7.4
redhatenterprise_linux_server_aus7.6
redhatenterprise_linux_server_eus7.4
redhatenterprise_linux_server_eus7.5
redhatenterprise_linux_server_eus7.6
redhatenterprise_linux_server_tus7.4
redhatenterprise_linux_server_tus7.6
redhatenterprise_linux_workstation7.0

Official sources

References

Links published by the sources. Open them with care.