Live threats

All CVEs / Pyenv

CVE-2022-35861Pyenv

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
0.3%
probability of exploitation in 30 days · percentile 20
Auth required
Yes
Published
Jul 17, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Pyenv.

Affected products (CPE)

VendorProductVersions
pyenvpyenv≥ 1.2.24 ≤ 2.3.2

Official sources

References

Links published by the sources. Open them with care.