takluyver/pyxdg · Security
pyxdg Arbitrary File Overwrite via Race Condition
- GHSA ID
- GHSA-7372-q459-jxhr
- CVE ID
- CVE-2014-1624
- Severity
- low
- Published
- Updated
Description
Race condition in the xdg.BaseDirectory.get_runtime_dir function in pyxdg 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.
CWEs
- CWE-59 · Improper Link Resolution Before File Access ('Link Following')
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-1624 ↗
- https://exchange.xforce.ibmcloud.com/vulnerabilities/90618 ↗
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736247 ↗
- http://www.openwall.com/lists/oss-security/2014/01/21/3 ↗
- http://www.openwall.com/lists/oss-security/2014/01/21/4 ↗
- https://github.com/takluyver/pyxdg/commit/bd999c1c3fe7ee5f30ede2cf704cf03e400347b4 ↗
- https://web.archive.org/web/20200227194825/http://www.securityfocus.com/bid/65042 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2014-95.yaml ↗
- https://github.com/advisories/GHSA-7372-q459-jxhr ↗