{"id":"UBUNTU-CVE-2026-68939","details":"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.","modified":"2026-09-02T19:36:07.804758002Z","published":"2026-08-18T15:17:00Z","upstream":["CVE-2026-68939"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-68939"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-68939"}],"affected":[{"package":{"name":"pyenv","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pyenv?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.5.4-1build1","2.6.8-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.6.8-1","binary_name":"pyenv"},{"binary_name":"pyenv-runtime","binary_version":"2.6.8-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-68939.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}