Arbitrary File Overwrite Affecting pyxdg package, versions [0.25]


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.04% (6th percentile)
Expand this section
NVD
4.4 medium
Expand this section
Red Hat
4.4 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PYTHON-PYXDG-40263
  • published 21 Jan 2014
  • disclosed 21 Jan 2014
  • credit Unknown

Overview

pyxdg is a PyXDG contains implementations of freedesktop.org standards in python. 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.