{"id":"CVE-2022-35861","aliases":["CVE-2022-35861"],"related":[],"kind":"vulnerability","state":"published","title":"pyenv 1.2.24 through 2.3.2 allows local users to gain privileges via a .python-version file in the current working directory.","summary":"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.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.)","source":"cvelist"},{"lang":"es","text":"pyenv versiones 1.2.24 hasta 2.3.2, permite a usuarios locales conseguir privilegios por medio de un archivo .python-version en el directorio de trabajo actual. Un atacante puede diseñar una cadena de versión de Python en .python-version para ejecutar shims bajo su control. (Los shims son ejecutables que pasan un comando a una versión específica de pyenv. La cadena de versión es usada para construir la ruta al comando, y no es comprobado si la versión especificada es una versión válida. Por lo tanto, puede producirse un salto de rutas relativo)","source":"nvd"}],"published":"2022-07-17T16:31:03.000Z","modified":"2026-06-17T04:52:24.920Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"1.2.24","lastAffected":"2.3.2"}],"vendor":"pyenv","product":"pyenv","cpe":"cpe:2.3:a:pyenv:pyenv:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653","tags":["patch","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-35861","url":"https://www.cve.org/CVERecord?id=CVE-2022-35861","licence":"CVE Terms of Use","modified":"2024-08-03T09:44:22.146Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-35861","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35861","licence":"Public domain","modified":"2026-06-17T04:52:24.920Z"}],"updatedAt":"2026-11-25T22:58:12.992Z","epss":{"score":0.00295,"percentile":0.2381,"date":"2026-12-01T12:00:22.000Z"}}