Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-35861

7.8 · HIGH
Published Jul 17, 2022 pyenv CWE-22 EPSS 0.29% (21th pctl)

Overview

CVE-2022-35861 is a high-severity vulnerability affecting pyenv pyenv. It was published on July 17, 2022 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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.)

Remediation

Check the references section for vendor advisories and patches from pyenv. Update pyenv to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
pyenv pyenv 1.2.24 Affected

Frequently Asked Questions

What is CVE-2022-35861?

CVE-2022-35861 is a high-severity vulnerability affecting pyenv pyenv. It was published on July 17, 2022 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2022-35861?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-35861?

Check the references section for vendor advisories and patches from pyenv. Update pyenv to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-35861?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-35861 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.