CVE-2017-1000115 Mercurial missing symlink check
Attackers can use malicious repositories to modify files outside the repository directory due to missing symlink checks in Mercurial.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-1000115?
CVE-2017-1000115 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 4 Oct 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Mercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repository
Weakness: CWE-59
Which versions are affected by CVE-2017-1000115?
3 open source packages ship an affected version, including mercurial. It affects 8 products.
| Package | Affected | Fixed in |
|---|---|---|
mercurial PyPI | All versions | 4.3 |
mercurial PyPI | All versions | 4.3.1 |
mercurial PyPI | All versions | 4.3.1 |
Products include Debian Debian Linux, Mercurial Mercurial, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server Eus and 2 more.
How do I fix CVE-2017-1000115?
Upgrade mercurial to a fixed version for your release line: 4.3 or 4.3.1.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2017-1000115 being exploited?
There is no known exploitation of CVE-2017-1000115 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2017-1000115, DEBIAN-CVE-2017-1000115, GHSA-hvr9-wr9p-grgr, PYSEC-2017-88, UBUNTU-CVE-2017-1000115.