CVE-2022-35861
Last modified
CVE-2022-35861 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.28% chance of exploitation in the next 30 days.
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.)
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pyenv | Pyenv | >= 1.2.24, <= 2.3.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-35861?
How severe is CVE-2022-35861?
How do I fix CVE-2022-35861?
Are you affected by CVE-2022-35861?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
