CVE-2022-35861

Source
https://cve.org/CVERecord?id=CVE-2022-35861
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35861.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-35861
Downstream
Related
Published
2022-07-17T17:15:08.233Z
Modified
2026-03-14T11:49:43.575911Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Git / github.com/pyenv/pyenv

Affected ranges

Type
GIT
Repo
https://github.com/pyenv/pyenv
Events
Database specific
{
    "versions": [
        {
            "introduced": "1.2.24"
        },
        {
            "last_affected": "2.3.2"
        }
    ]
}

Affected versions

1.*
1.2.24
1.2.24.1
1.2.25
1.2.26
1.2.27
v1.*
v1.2.24
v1.2.24.1
v1.2.25
v1.2.26
v2.*
v2.0.0
v2.0.0-rc1
v2.0.1
v2.0.2
v2.0.3
v2.0.4
v2.0.5
v2.0.6
v2.0.7
v2.1.0
v2.2.0
v2.2.1
v2.2.2
v2.2.3
v2.2.4
v2.2.4-1
v2.2.5
v2.3.0
v2.3.1
v2.3.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35861.json"