CVE-2015-1395 Path traversal in n/a
Remote attackers can write to arbitrary files via directory traversal in GNU patch, potentially modifying system files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2015-1395?
CVE-2015-1395 is a high-severity path traversal vulnerability in Canonical Ubuntu Linux, published on 25 Aug 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Directory traversal vulnerability in GNU patch versions which support Git-style patching before 2.7.3 allows remote attackers to write to arbitrary files with the permissions of the target user via a .. (dot dot) in a diff file name.
Weakness: CWE-22
Which versions are affected by CVE-2015-1395?
It affects 3 products.
Products include Canonical Ubuntu Linux, Fedoraproject Fedora, Gnu Patch.
How do I fix CVE-2015-1395?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2015-1395 being exploited?
There is no known exploitation of CVE-2015-1395 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as DEBIAN-CVE-2015-1395, GHSA-97xh-wvxp-9m89, UBUNTU-CVE-2015-1395.