Link following in pyxdg - CVE-2014-1624

 

Link following in pyxdg - CVE-2014-1624

Published: January 28, 2014 / Updated: August 10, 2020


Vulnerability identifier: #VU42101
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2014-1624
CWE-ID: CWE-59
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Freedesktop.org
Affected software:
pyxdg

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to manipulate or delete data.

Race condition in the xdg.BaseDirectory.get_runtime_dir function in python-xdg 0.25 allows local users to overwrite arbitrary files by pre-creating /tmp/pyxdg-runtime-dir-fallback-victim to point to a victim-owned location, then replacing it with a symlink to an attacker-controlled location once the get_runtime_dir function is called.


How to mitigate CVE-2014-1624

Install update from vendor's website.

Sources