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-17T16:31:03Z
Modified
2026-07-15T01:49:14.443557662Z
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.)

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35861.json",
    "cna_assigner": "mitre"
}
References

Affected packages

Git / github.com/pyenv/pyenv

Affected ranges

Type
GIT
Repo
https://github.com/pyenv/pyenv
Events
Database specific
{
    "cpe": "cpe:2.3:a:pyenv:pyenv:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "1.2.24"
        },
        {
            "last_affected": "2.3.2"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

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