CVE-2014-9706 Dulwich Arbitrary code execution via commit with directory path starting with .git
Remote attackers can execute arbitrary code by providing a malicious commit with a .git/ directory path, affecting users of the Dulwich library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2014-9706?
CVE-2014-9706 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 31 Mar 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The build_index_from_tree function in index.py in Dulwich before 0.9.9 allows remote attackers to execute arbitrary code via a commit with a directory path starting with .git/, which is not properly handled when checking out a working tree.
Weakness: CWE-19
Which versions are affected by CVE-2014-9706?
3 open source packages ship an affected version, including dulwich. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
dulwich PyPI | All versions | 0.9.10 |
dulwich PyPI | All versions | 0.9.10 |
dulwich PyPI | All versions | 0.9.9 |
Products include Debian Debian Linux, Dulwich Project Dulwich.
How do I fix CVE-2014-9706?
Upgrade dulwich to a fixed version for your release line: 0.9.10 or 0.9.9.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2014-9706 being exploited?
There is no known exploitation of CVE-2014-9706 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2014-9706, GHSA-4j5j-58j7-6c3w, PYSEC-2015-34.