GitHub Advisoryadvisory · PyPI
GHSA-7372-q459-jxhr pyxdg Arbitrary File Overwrite via Race Condition
LOW
Official page ↗
- Aliases
- CVE-2014-1624
- Ecosystem
- PyPI
- Packages
- pyxdg
- Severity
- Low
- Weaknesses
- CWE-59
- Reviewed
- 2023-08-16
Affected packages
• PyPI pyxdg: < 0.26 → fixed in 0.26
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.
Related
Alias · CVE (1)
- CVE-2014-1624 Race condition in the xdg.BaseDirectory.get_runtime_dir function in python-xdg 0.25 allows local users to overwrite arbitrary files by… vulnerability
Weakness · CWE (1)
- CWE-59 Improper Link Resolution Before File Access weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-1624 advisory
- https://github.com/takluyver/pyxdg/commit/bd999c1c3fe7ee5f30ede2cf704cf03e400347b4 web
- https://exchange.xforce.ibmcloud.com/vulnerabilities/90618 web
- https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2014-95.yaml web
- https://github.com/takluyver/pyxdg package
- https://web.archive.org/web/20200227194825/http://www.securityfocus.com/bid/65042 web
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736247 web
- http://www.openwall.com/lists/oss-security/2014/01/21/3 web
- http://www.openwall.com/lists/oss-security/2014/01/21/4 web