# CVE-2026-68939: Pyenv: Glob/wildcard metacharacters bypass is_version_safe(), causing silent version/interpreter substitution via unquoted expansion (CVE-2022-35861 residual)

- Severity: Low 2.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-18T15:11:10.331Z
- Modified: 2026-09-18T20:05:53.723Z
- Weaknesses: CWE-78, CWE-88, CWE-155
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pyenv pyenv: < 2.8.0

## References

- <https://github.com/pyenv/pyenv/security/advisories/GHSA-g478-f579-9vp9> (exploit)
- <https://github.com/pyenv/pyenv/commit/95df7dbc7b34595b47c9b922de198547effda819>
- <https://github.com/pyenv/pyenv/releases/tag/v2.8.0>

## Sources

- CVE List: [CVE-2026-68939](https://www.cve.org/CVERecord?id=CVE-2026-68939), CVE Terms of Use, modified 2026-08-18
- NVD: [CVE-2026-68939](https://nvd.nist.gov/vuln/detail/CVE-2026-68939), Public domain, modified 2026-09-18

---

Page: https://cve.day/CVE-2026-68939 · Whole record: https://cve.day/CVE-2026-68939.json · Rebuilt by cve.day 2026-11-25T22:59:33.483Z
