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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs736247

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pyxdg (PTS)bullseye0.27-2fixed
bookworm, sid, trixie0.28-2fixed

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