Lucene search

K
githubGitHub Advisory DatabaseGHSA-7372-Q459-JXHR
HistoryMay 17, 2022 - 1:27 a.m.

pyxdg Arbitrary File Overwrite via Race Condition

2022-05-1701:27:07
CWE-59
GitHub Advisory Database
github.com
8
pyxdg
basedirectory
get_runtime_dir
race condition
arbitrary files
local users
overwrite

CVSS2

3.3

Attack Vector

LOCAL

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:M/Au:N/C:N/I:P/A:P

EPSS

0

Percentile

5.1%

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 configurations

Vulners
Node
pythonpyxdgRange0.25
VendorProductVersionCPE
pythonpyxdg*cpe:2.3:a:python:pyxdg:*:*:*:*:*:*:*:*

CVSS2

3.3

Attack Vector

LOCAL

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:L/AC:M/Au:N/C:N/I:P/A:P

EPSS

0

Percentile

5.1%