pyxdg Arbitrary File Overwrite via Race Condition
Low severity
GitHub Reviewed
Published
May 17, 2022
to the GitHub Advisory Database
•
Updated Oct 16, 2024
Description
Published by the National Vulnerability Database
Jan 28, 2014
Published to the GitHub Advisory Database
May 17, 2022
Reviewed
Aug 16, 2023
Last updated
Oct 16, 2024
Race condition in the
xdg.BaseDirectory.get_runtime_dir
function in pyxdg 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 theget_runtime_dir
function is called.References