First published: Thu Dec 07 2017(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Mercurial Mercurial | <4.4.1 | |
Debian Debian Linux | =7.0 | |
Debian Debian Linux | =8.0 | |
pip/mercurial | <4.4.1 | 4.4.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability ID for this vulnerability is CVE-2017-17458.
CVE-2017-17458 has a severity rating of 9.8 (critical).
CVE-2017-17458 affects Mercurial versions before 4.4.1.
CVE-2017-17458 allows a specially malformed repository to cause Git subrepositories to run arbitrary code.
To mitigate CVE-2017-17458, update Mercurial to version 4.4.1 or later.