CVE-2017-17458: OS Command Injection

Published Dec 7, 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.

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

4 affected componentsFixes available
pip/mercurial<4.4.1
4.4.1
Mercurial Mercurial<4.4.1
Debian Debian Linux=7.0
Debian Debian Linux=8.0

Event History

Dec 7, 2017
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
May 13, 2022
Advisory Published
via GitHub·01:24 AM

Frequently Asked Questions

1

What is the vulnerability ID for this vulnerability?

The vulnerability ID for this vulnerability is CVE-2017-17458.

2

What is the severity rating of CVE-2017-17458?

CVE-2017-17458 has a severity rating of 9.8 (critical).

3

How does CVE-2017-17458 affect Mercurial?

CVE-2017-17458 affects Mercurial versions before 4.4.1.

4

What is the impact of CVE-2017-17458?

CVE-2017-17458 allows a specially malformed repository to cause Git subrepositories to run arbitrary code.

5

How can I mitigate CVE-2017-17458?

To mitigate CVE-2017-17458, update Mercurial to version 4.4.1 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203