Live threats

All CVEs / Mercurial

CVE-2017-17458Mercurial

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
6.3%
probability of exploitation in 30 days · percentile 94
Auth required
No
Published
Dec 7, 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

In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.

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.4.1 4.4.1 pip install "mercurial>=4.4.1"
PyPI mercurial < 4.4.1 4.4.1 pip install "mercurial>=4.4.1"

Per OSV / GitHub Advisories (GHSA-6v56-cpg6-3rpx, PYSEC-2017-90). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mercurialmercurial< 4.4.1
debiandebian_linux7.0
debiandebian_linux8.0

Official sources

References

Links published by the sources. Open them with care.