CVE-2013-2142 Path traversal in n/a
Local attackers can overwrite arbitrary files via symlink attacks when environment variables are unset, potentially compromising system integrity.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2013-2142?
CVE-2013-2142 is a low-severity path traversal vulnerability in n/a, published on 19 Jan 2014. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
userpref.c in libimobiledevice 1.1.4, when $HOME and $XDG_CONFIG_HOME are not set, allows local users to overwrite arbitrary files via a symlink attack on (1) HostCertificate.pem, (2) HostPrivateKey.pem, (3) libimobiledevicerc, (4) RootCertificate.pem, or (5) RootPrivateKey.pem in /tmp/root/.config/libimobiledevice/.
Weakness: CWE-59
Which versions are affected by CVE-2013-2142?
It affects 1 product.
Products include Libimobiledevice Libimobiledevice.
How do I fix CVE-2013-2142?
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-2013-2142 being exploited?
There is no known exploitation of CVE-2013-2142 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2013-2142, GHSA-7wj3-4crv-vhfj, MGASA-2013-0251.