Bug ID | 1201582 |
---|---|
Summary | VUL-0: CVE-2022-35861: pyenv: Relative path traversal due to using version string in path |
Classification | openSUSE |
Product | openSUSE Distribution |
Version | Leap 15.4 |
Hardware | Other |
URL | https://smash.suse.de/issue/337488/ |
OS | Other |
Status | NEW |
Severity | Minor |
Priority | P5 - None |
Component | Security |
Assignee | thomas.schraitle@suse.com |
Reporter | cathy.hu@suse.com |
QA Contact | security-team@suse.de |
Found By | Security Response Team |
Blocker | --- |
CVE-2022-35861 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: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-35861 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-35861 https://github.com/pyenv/pyenv/commit/22fa683571d98b59ea16e5fe48ac411c67939653