{ "id": "CVE-2022-35861", "sourceIdentifier": "cve@mitre.org", "published": "2022-07-17T17:15:08.233", "lastModified": "2023-03-03T19:26:52.587", "vulnStatus": "Analyzed", "descriptions": [ { "lang": "en", "value": "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.)" }, { "lang": "es", "value": "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\u00f1ar una cadena de versi\u00f3n de Python en .python-version para ejecutar shims bajo su control. (Los shims son ejecutables que pasan un comando a una versi\u00f3n espec\u00edfica de pyenv. La cadena de versi\u00f3n es usada para construir la ruta al comando, y no es comprobado si la versi\u00f3n especificada es una versi\u00f3n v\u00e1lida. Por lo tanto, puede producirse un salto de rutas relativo)" } ], "metrics": { "cvssMetricV31": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH", "baseScore": 7.8, "baseSeverity": "HIGH" }, "exploitabilityScore": 1.8, "impactScore": 5.9 } ], "cvssMetricV2": [ { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "2.0", "vectorString": "AV:L/AC:L/Au:N/C:P/I:P/A:P", "accessVector": "LOCAL", "accessComplexity": "LOW", "authentication": "NONE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "baseScore": 4.6 }, "baseSeverity": "MEDIUM", "exploitabilityScore": 3.9, "impactScore": 6.4, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false } ] }, "weaknesses": [ { "source": "nvd@nist.gov", "type": "Primary", "description": [ { "lang": "en", "value": "CWE-22" } ] } ], "configurations": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:pyenv:pyenv:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.2.24", "versionEndIncluding": "2.3.2", "matchCriteriaId": "D503BB1C-BFBB-4E06-A1F2-693A13B0D12D" } ] } ] } ], "references": [ { "url": "https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653", "source": "cve@mitre.org", "tags": [ "Patch" ] } ] }