VDB
Sign up
—

PYSEC-2014-95

Quick fix

PYSEC-2014-95 — pyxdg: upgrade to the fixed version with the command below.

pip install --upgrade 'pyxdg>=0.26'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pyxdg
Introduced in: 0.25Fixed in: 0.26
Fixpip install --upgrade 'pyxdg>=0.26'

References