OS Command Injection Affecting mercurial package, versions <3.1.2-2+deb8u6
Snyk CVSS
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DEBIAN8-MERCURIAL-311069
- published 7 Dec 2017
- disclosed 7 Dec 2017
Introduced: 7 Dec 2017
CVE-2017-17458 Open this link in a new tabHow to fix?
Upgrade Debian:8
mercurial
to version 3.1.2-2+deb8u6 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream mercurial
package and not the mercurial
package as distributed by Debian
.
See How to fix?
for Debian:8
relevant fixed versions and status.
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
- https://security-tracker.debian.org/tracker/CVE-2017-17458
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html
- https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html
- https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html
- https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730
- https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- http://www.securityfocus.com/bid/102926
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2017-17458