Unrated severityNVD Advisory· Published Jul 17, 2022· Updated Aug 3, 2024
CVE-2022-35861
CVE-2022-35861
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.)
Affected products
4- pyenv/pyenvdescription
- osv-coords2 versionspkg:rpm/opensuse/pyenv&distro=openSUSE%20Leap%2015.4pkg:rpm/suse/pyenv&distro=SUSE%20Package%20Hub%2015%20SP4
< 2.3.5-bp154.2.3.1+ 1 more
- (no CPE)range: < 2.3.5-bp154.2.3.1
- (no CPE)range: < 2.3.5-bp154.2.3.1
Patches
Vulnerability mechanics
References
1- github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653mitrex_refsource_MISC
News mentions
0No linked articles in our index yet.