CVE-2017-17458

critical
Published 2022-05-13 · Modified 2024-05-01
CVSS v3
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2
10.0
VIR risk
9.8

Description

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.

Predictions

Exploit likelihood
97%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2017-17458

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2017-17458.html

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debian7.0affected
debian debian8.0affected
debian debianbookwormfixed4.4.1-1
debian debianbullseyefixed4.4.1-1
debian debianforkyfixed4.4.1-1
debian debiansidfixed4.4.1-1
debian debiantrixiefixed4.4.1-1

Package impact

EcosystemPackageVulnerableFixed
python PyPImercurial<4.4.14.4.1

Application impact

VendorProductVersionsFixed
mercurialmercurial{"endExcluding":"4.4.1"}4.4.1

References

CWEs

CWE-78

Verify integrity in audit chain (admin only). AS-IS.