Critical

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 repo

  • Disclosed: 07.12.2017
  • Updated: 11.10.2026 12:20
CVSS score 9.8/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-78
Platform
Python (PyPI)
Package
mercurial
Disclosed
07.12.2017
Updated
11.10.2026 12:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-6v56-cpg6-3rpx - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2017-90 - PyPA Advisory Database; CC BY 4.0

Vulnerability history: mercurial

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (18) in the archive
Total entries
18
First → latest
03.2015 05.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 6
  • High 9
  • Medium 3

Disclosures per year

  1. 2017: 4
  2. 2018: 5
  3. 2019: 1
  4. 2020: 1
  5. 2021: 0
  6. 2022: 2
  7. 2023: 0
  8. 2024: 0
  9. 2025: 0
  10. 2026: 0

earlier: 5

Severity:
  1. 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 repo this entry
    Critical · 9.8 CVE-2017-17458 < 4.4.1 4.4.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.