Description
pyenv 1.2.24 through 2.3.2 allows local users to gain privileges via a .python-version file in the current working directory. An attacker can craft a Python version string in .python-version to execute shims under their control. (Shims are executables that pass a command along to a specific version of pyenv. The version string is used to construct the path to the command, and there is no validation of whether the version specified is a valid version. Thus, relative path traversal can occur.)
References (1)
Core 1
Core References
Patch x_refsource_misc
https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653
Scores
CVSS v3
7.8
EPSS
0.0028
EPSS Percentile
19.5%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Details
CWE
CWE-22
Status
published
Products (1)
pyenv/pyenv
1.2.24 - 2.3.2
Published
Jul 17, 2022
Tracked Since
Feb 18, 2026