GHSA-7372-q459-jxhr

Suggest an improvement
Source
https://github.com/advisories/GHSA-7372-q459-jxhr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7372-q459-jxhr/GHSA-7372-q459-jxhr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7372-q459-jxhr
Aliases
Published
2022-05-17T01:27:07Z
Modified
2024-12-06T05:42:41.254164Z
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.

Database specific
{
    "nvd_published_at": "2014-01-28T00:55:00Z",
    "severity": "LOW",
    "cwe_ids": [
        "CWE-59"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2023-08-16T22:48:18Z"
}
References

Affected packages

PyPI / pyxdg

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.26

Affected versions

0.*
0.19
0.20
0.21
0.22
0.23
0.24
0.25

Database specific

last_known_affected_version_range
"<= 0.25"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-7372-q459-jxhr/GHSA-7372-q459-jxhr.json"