{"id":"CVE-2026-68939","state":"PUBLISHED","title":"Pyenv: Glob/wildcard metacharacters bypass is_version_safe(), causing silent version/interpreter substitution via unquoted expansion (CVE-2022-35861 residual)","description":"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.","publishedAt":"2026-08-18T15:11:10.331Z","updatedAt":"2026-08-18T18:46:12.465Z","severity":{"score":2,"label":"Low","version":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["pyenv pyenv"],"affected":[{"vendor":"pyenv","product":"pyenv","versions":[{"version":"< 2.8.0","status":"affected"}]}],"references":["https://github.com/pyenv/pyenv/security/advisories/GHSA-g478-f579-9vp9","https://github.com/pyenv/pyenv/commit/95df7dbc7b34595b47c9b922de198547effda819","https://github.com/pyenv/pyenv/releases/tag/v2.8.0"],"weaknesses":["CWE-78","CWE-88","CWE-155"],"ingestedAt":"2026-10-29T20:12:49.727Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/68xxx/CVE-2026-68939.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-68939","state":"PUBLISHED","datePublished":"2026-08-18T15:11:10.331Z","dateUpdated":"2026-08-18T18:46:12.465Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-31T21:49:24.928Z"},"containers":{"cna":{"title":"Pyenv: Glob/wildcard metacharacters bypass is_version_safe(), causing silent version/interpreter substitution via unquoted expansion (CVE-2022-35861 residual)","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"pyenv","product":"pyenv","versions":[{"version":"< 2.8.0","status":"affected"}]}],"references":[{"url":"https://github.com/pyenv/pyenv/security/advisories/GHSA-g478-f579-9vp9","name":"https://github.com/pyenv/pyenv/security/advisories/GHSA-g478-f579-9vp9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pyenv/pyenv/commit/95df7dbc7b34595b47c9b922de198547effda819","name":"https://github.com/pyenv/pyenv/commit/95df7dbc7b34595b47c9b922de198547effda819","tags":["x_refsource_MISC"]},{"url":"https://github.com/pyenv/pyenv/releases/tag/v2.8.0","name":"https://github.com/pyenv/pyenv/releases/tag/v2.8.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":2,"baseSeverity":"LOW","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-88","lang":"en","description":"CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-155","lang":"en","description":"CWE-155: Improper Neutralization of Wildcards or Matching Symbols","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-18T15:11:10.331Z"},"source":{"advisory":"GHSA-g478-f579-9vp9","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/pyenv/pyenv/security/advisories/GHSA-g478-f579-9vp9","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-18T18:45:54.610692Z","id":"CVE-2026-68939","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-18T18:46:12.465Z"}}]}}}