cvedb.io
CVE-2022-35861
HIGH · CVSS 7.8
EPSS exploitation probability: 0%
Published 2022-07-17T17:15:08.233 · Last modified 2026-06-17T04:52:24.920

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

pyenv — pyenv

Does this affect you?

Add your gear to cvedb and we'll alert you only when pyenv ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.