Skip to content
OpenAdvisories
Unscored CVE-2022-35861 EUVD-2022-38734GHSA-7rf7-7xf5-v9v3

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 c…

Published Jul 17, 2022 · Updated Aug 3, 2024 · Assigned by mitre

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP4 pyenv 2.3.5-bp154.2.3.1 openSUSE-SU-2022:10183-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 pyenv 2.3.5-bp154.2.3.1 openSUSE-SU-2022:10183-1

Advisories 1

References