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 execut...
HighCVSS 7.8
EPSS 0.30%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Debian
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.)
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pyenv | >= 1.2.24, <= 2.3.2 | after 2.3.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pyenv | >= 1.2.24, <= 2.3.2 | No fix listed |
References
- github.com patch
- Debian Security Tracker CVE-2022-35861 vendor-advisory