DescriptionRace 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitylow (attack range: local)
Debian Bugs736247

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pyxdg (PTS)buster, sid, jessie, stretch0.25-4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pyxdgsourcesqueeze(not affected)
pyxdgsourcewheezy(not affected)


[squeeze] - pyxdg <not-affected> (get_runtime_dir introduced in later version)
[wheezy] - pyxdg <not-affected> (get_runtime_dir introduced in later version)

Search for package or bug name: Reporting problems