1. Home
  2. Vulnerabilities
  3. CVE-2022-35861

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…

Published 17 Jul 2022 · modified 17 Jun 2026 · Sources: NVD, EPSS (FIRST)

Low 37/100

Summary

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 and versions

Pyenv (1 line(s))
Pyenv
ProductVersionsFixed inSource
Pyenv from 1.2.24 (included) to 2.3.2 (included) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, NVD)
Weakness
CWE-22 · Traversée de chemin / fichiers

How this data is obtained and calculated