Vulnerability 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.)
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Pyenv | Pyenv | >= 1.2.24, <= 2.3.2 |
Related Weaknesses (CWE)
References
- https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653Patch
- https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653Patch
FAQ
What is CVE-2022-35861?
CVE-2022-35861 is a vulnerability with a CVSS score of 7.8 (HIGH). 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...
How severe is CVE-2022-35861?
CVE-2022-35861 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-35861?
Check the references section above for vendor advisories and patch information. Affected products include: Pyenv Pyenv.