Race condition in the xdg.BaseDirectory.get_runtime_dir function in python-xdg 0.25…
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- —
- Confidentiality · integrity · availability
- None · Partial · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | pyxdg (PyPI) | before 0.26 | 0.26 | Patch available | GHSA-7372-q459-jxhr |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- pyxdg (PyPI) Vendor— Affected before 0.26 Fixed in 0.26 Patch available GHSA-7372-q459-jxhr
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:pyxdg:0.25:*:*:*:*:*:*:* | 0.25 | Vulnerable | python-pillow |
- cpe:2.3:a:python:pyxdg:0.25:*:*:*:*:*:*:* Versions 0.25 Vulnerable ·python-pillow
Remediation
- Fix · GHSA-7372-q459-jxhr pyxdg (PyPI) Fixed in 0.26 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 2 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Timeline
- 2026-10-02 Threatist record created from CVE-2014-1624
- 2026-10-03 Alias added: GHSA-7372-q459-jxhr
References
Other 7
- [oss-security] 20140121 Re: Fwd: [Python-modules-team] Bug#736247: python-xdg: get_runtime_dir(strict=False): insecure use of /tmp
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736247
- [oss-security] 20140121 Fwd: [Python-modules-team] Bug#736247: python-xdg: get_runtime_dir(strict=False): insecure use of /tmp
- https://github.com/takluyver/pyxdg/commit/bd999c1c3fe7ee5f30ede2cf704cf03e400347b4
- https://github.com/pypa/advisory-database/tree/main/vulns/pyxdg/PYSEC-2014-95.yaml
- https://github.com/takluyver/pyxdg
- https://web.archive.org/web/20200227194825/http://www.securityfocus.com/bid/65042
More python-pillow Pyxdg vulnerabilities
- TI-2019-09550 A code injection issue was discovered in PyXDG before 0.26 via crafted Python code in a… CVSS 3.0HIGH 7.5
Sources
- CVE-2014-1624 · CVE Program
- CVE-2014-1624 · NVD
- FIRST EPSS
- GHSA-7372-q459-jxhr · GitHub Advisory Database · CC BY 4.0
- CVE-2014-1624 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences