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.)
{
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35861.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:pyenv:pyenv:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.2.24"
},
{
"last_affected": "2.3.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "22fa683571d98b59ea16e5fe48ac411c67939653"
}
],
"source": "REFERENCES_COMMIT"
}
]
}