CVE-2017-17458: OS Command Injection
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.
Other sources
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.
— GitHub
Affected Software
Event History
Frequently Asked Questions
What is the vulnerability ID for this vulnerability?
The vulnerability ID for this vulnerability is CVE-2017-17458.
What is the severity rating of CVE-2017-17458?
CVE-2017-17458 has a severity rating of 9.8 (critical).
How does CVE-2017-17458 affect Mercurial?
CVE-2017-17458 affects Mercurial versions before 4.4.1.
What is the impact of CVE-2017-17458?
CVE-2017-17458 allows a specially malformed repository to cause Git subrepositories to run arbitrary code.
How can I mitigate CVE-2017-17458?
To mitigate CVE-2017-17458, update Mercurial to version 4.4.1 or later.