Mercurial vulnerable to arbitrary code injection
Critical severity
GitHub Reviewed
Published
May 13, 2022
to the GitHub Advisory Database
•
Updated Sep 25, 2024
Description
Published by the National Vulnerability Database
Dec 7, 2017
Published to the GitHub Advisory Database
May 13, 2022
Reviewed
May 1, 2024
Last updated
Sep 25, 2024
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.References