GitHub Advisoryadvisory · PyPI

GHSA-7372-q459-jxhr pyxdg Arbitrary File Overwrite via Race Condition

LOW Published 2022-05-17 Modified 2024-10-16 Official page ↗
Aliases
CVE-2014-1624
Ecosystem
PyPI
Packages
pyxdg
Severity
Low
Weaknesses
CWE-59
Reviewed
2023-08-16

Affected packages

• PyPI pyxdg: < 0.26 → fixed in 0.26

Description

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 the `get_runtime_dir` function is called.

Related

Alias · CVE (1)

  • 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… vulnerability

Weakness · CWE (1)

  • CWE-59 Improper Link Resolution Before File Access weakness

References