Vulnerability Description
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.
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Mercurial | Mercurial | < 4.4.1 |
| Debian | Debian Linux | 7.0 |
Related Weaknesses (CWE)
References
- http://www.securityfocus.com/bid/102926Third Party AdvisoryVDB Entry
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730Issue TrackingThird Party Advisory
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00027.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00005.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00041.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.htmVendor Advisory
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29Vendor Advisory
- http://www.securityfocus.com/bid/102926Third Party AdvisoryVDB Entry
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730Issue TrackingThird Party Advisory
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00027.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00005.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00041.htmlMailing ListThird Party Advisory
FAQ
What is CVE-2017-17458?
CVE-2017-17458 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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 repo...
How severe is CVE-2017-17458?
CVE-2017-17458 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2017-17458?
Check the references section above for vendor advisories and patch information. Affected products include: Mercurial Mercurial, Debian Debian Linux.