Path Traversal in Pyenv

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

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.003 (21.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Pyenv
  • N/a — versions n/a

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-35861?
CVE-2022-35861 is a high-severity vulnerability in Pyenv, classified under Path Traversal. CVSS score: 7.8/10. Published 2022-07-17.
How severe is CVE-2022-35861?
High severity. CVSS v3 base score is 7.8 out of 10.