CVE-2022-35861

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.)
Configurations

Configuration 1 (hide)

cpe:2.3:a:pyenv:pyenv:*:*:*:*:*:*:*:*

History

21 Nov 2024, 07:11

Type Values Removed Values Added
References () https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653 - Patch () https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653 - Patch

03 Mar 2023, 19:26

Type Values Removed Values Added
CPE cpe:2.3:a:pyenv_project:pyenv:*:*:*:*:*:*:*:* cpe:2.3:a:pyenv:pyenv:*:*:*:*:*:*:*:*

18 Jul 2022, 13:52

Type Values Removed Values Added
References (MISC) https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653 - (MISC) https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653 - Patch, Third Party Advisory
CVSS v2 : unknown
v3 : unknown
v2 : 4.6
v3 : 7.8
CWE CWE-22
CPE cpe:2.3:a:pyenv_project:pyenv:*:*:*:*:*:*:*:*

17 Jul 2022, 17:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-07-17 17:15

Updated : 2024-11-21 07:11


NVD link : CVE-2022-35861

Mitre link : CVE-2022-35861

CVE.ORG link : CVE-2022-35861


JSON object : View

Products Affected

pyenv

  • pyenv
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')