Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pyxdg | 0.25-4 | — |
| Debian 13 | pyxdg | 0.25-4 | — |
| Debian 12 | pyxdg | 0.25-4 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | pyxdg | 0.25-4 | — |
| Ubuntu 14.04 LTS | pyxdg | 0.25-4 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | python-xdg | 0.25-9.3.1 | SUSE-SU-2019:2719-2 |
| SLES 12 SP4 | python-xdg | 0.25-9.3.1 | SUSE-SU-2019:2719-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | python-xdg | 0.25-9.3.1 | SUSE-SU-2019:2719-2 |
| SLES for SAP 12 SP4 | python-xdg | 0.25-9.3.1 | SUSE-SU-2019:2719-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pyxdg | < 0.26 | 0.26 | GHSA-7372-q459-jxhr |
| PyPI | pyxdg | >= 0.25, < 0.26 | 0.26 | PYSEC-2014-95 |
Advisories 2
- SUSE-SU-2019:2719-1 Security update for python-xdg SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2719-2 Security update for python-xdg SUSE / openSUSE Security Updates · Feb 4, 2026
References
- [oss-security] 20140121 Re: Fwd: [Python-modules-team] Bug#736247: python-xdg: get_runtime_dir(strict=False): insecure use of /tmp mailing-list
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736247
- pythonxdg-cve20141624-symlink(90618) vdb-entry
- 65042 vdb-entry
- [oss-security] 20140121 Fwd: [Python-modules-team] Bug#736247: python-xdg: get_runtime_dir(strict=False): insecure use of /tmp mailing-list