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.
Metrics
Affected Vendors & Products
Advisories
Source | ID | Title |
---|---|---|
![]() |
DLA-1224-1 | mercurial security update |
![]() |
DLA-1414-1 | mercurial security update |
![]() |
DLA-1414-2 | mercurial regression update |
![]() |
DLA-2293-1 | mercurial security update |
![]() |
GHSA-6v56-cpg6-3rpx | Mercurial vulnerable to arbitrary code injection |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
No history.

Status: PUBLISHED
Assigner: mitre
Published:
Updated: 2024-08-05T20:51:31.432Z
Reserved: 2017-12-07T00:00:00
Link: CVE-2017-17458

No data.

Status : Deferred
Published: 2017-12-07T18:29:00.203
Modified: 2025-04-20T01:37:25.860
Link: CVE-2017-17458


No data.