{"id":"CVE-2026-68939","aliases":["CVE-2026-68939"],"related":[],"kind":"vulnerability","state":"published","title":"Pyenv: Glob/wildcard metacharacters bypass is_version_safe(), causing silent version/interpreter substitution via unquoted expansion (CVE-2022-35861 residual)","summary":"Pyenv provides simple Python version management. Prior to 2.8.0, is_version_safe() in libexec/pyenv-version-file-read accepts shell glob metacharacters in .python-version values, and unquoted PYENV_VERSION expansion in libexec/pyenv-version-name, libexec/pyenv-which, libexec/pyenv-prefix, libexec/pyenv-local, libexec/pyenv-global, libexec/pyenv-version, and libexec/pyenv-versions pathname-expands the value against the current directory, allowing a matching attacker-controlled file to silently select a different installed interpreter or version. This issue is fixed in version 2.8.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Pyenv provides simple Python version management. Prior to 2.8.0, is_version_safe() in libexec/pyenv-version-file-read accepts shell glob metacharacters in .python-version values, and unquoted PYENV_VERSION expansion in libexec/pyenv-version-name, libexec/pyenv-which, libexec/pyenv-prefix, libexec/pyenv-local, libexec/pyenv-global, libexec/pyenv-version, and libexec/pyenv-versions pathname-expands the value against the current directory, allowing a matching attacker-controlled file to silently select a different installed interpreter or version. This issue is fixed in version 2.8.0.","source":"cvelist"}],"published":"2026-08-18T15:11:10.331Z","modified":"2026-09-18T20:05:53.723Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":2,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","score":2,"rating":"LOW"}],"cwes":["CWE-78","CWE-88","CWE-155"],"affected":[{"ranges":[{"version":"< 2.8.0","status":"affected"}],"vendor":"pyenv","product":"pyenv","source":"cvelist"}],"references":[{"url":"https://github.com/pyenv/pyenv/security/advisories/GHSA-g478-f579-9vp9","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pyenv/pyenv/commit/95df7dbc7b34595b47c9b922de198547effda819","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pyenv/pyenv/releases/tag/v2.8.0","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-18T18:45:54.610Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68939","url":"https://www.cve.org/CVERecord?id=CVE-2026-68939","licence":"CVE Terms of Use","modified":"2026-08-18T18:46:12.465Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68939","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68939","licence":"Public domain","modified":"2026-09-18T20:05:53.723Z"}],"updatedAt":"2026-11-25T22:59:33.483Z","epss":{"score":0.0022,"percentile":0.13308,"date":"2026-12-01T12:00:22.000Z"}}