CVE-2014-1624: Race Condition in python-xdg Allows Arbitrary File Overwrite

pyxdg Updated 02 Oct 2025

Summary

28/01/2014
Yes i
Low
Not published

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 pre-creating /tmp/pyxdg-runtime-dir-fallback-victim to point to a victim-owned locati... Affects pyxdg versions >= 0.25, < 0.26. Fixed in 0.26. How to fix ↓

Also tracked for

The same CVE-2014-1624 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

python-xdg is a Python library that provides implementation of various Freedesktop.org standards. It is commonly used to handle base directories and user directories in a cross-platform manner. The library allows applications to locate and access directories such as configuration, data, and cache directories. However, a vulnerability in python-xdg version 0.25 exposes a race condition that can be exploited by local users to overwrite arbitrary files on the system.

Vulnerability Detail

The vulnerability (CVE-2014-1624) arises from a race condition in the xdg.BaseDirectory.get_runtime_dir function of python-xdg 0.25. By pre-creating a file named '/tmp/pyxdg-runtime-dir-fallback-victim' that points to a location owned by the victim, an attacker can replace it with a symlink to an attacker-controlled location when the get_runtime_dir function is called. This allows the attacker to overwrite arbitrary files on the system, potentially leading to privilege escalation or unauthorized access to sensitive information.

How To Fix

Minimum fixed version

0.26

This is the first release that contains the fix.

pip install --upgrade "pyxdg==0.26"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in python-xdg version 0.25 allows local users to overwrite arbitrary files on the system. It is recommended to upgrade to version 0.26 or later to fix this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for pyxdg →

Share this vulnerability

FAQ

python-xdg is a Python library that provides implementation of various Freedesktop.org standards for handling base directories and user directories in a cross-platform manner.

This vulnerability allows local users to overwrite arbitrary files on the system, potentially leading to privilege escalation or unauthorized access to sensitive information.

The vulnerability affects python-xdg version 0.25.

Yes, the vulnerability has been fixed in python-xdg version 0.26.

No specific workarounds have been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for pyxdg.

How To Fix

Minimum fixed version

0.26

This is the first release that contains the fix.

pip install --upgrade "pyxdg==0.26"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback