GHSA-7372-q459-jxhr

    Dashboard / Vulnerabilities / GHSA-7372-q459-jxhr

    GHSA-7372-q459-jxhr

    Published: 17 May 2022Last Modified: 6 Dec 2024

    Summary: pyxdg Arbitrary File Overwrite via Race Condition

    Details: 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.

    Affected packages

    Package

    Name: pyxdg

    Purl: pkg:pypi/pyxdg

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -0.26

    Affected versions

    0.19

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-7372-q459-jxhr | CVE-DB