Interpreter substitution via wildcard expansion
Published Aug 18, 2026 · Updated Aug 18, 2026
Wildcard handling in pyenv before 2.8.0 allows attackers to redirect interpreter selection via a crafted .python-version value. The is_version_safe() check in libexec/pyenv-version-file-read rejects only .. and /, while libexec/pyenv-version-name, pyenv-which, and pyenv-prefix later expand PYENV_VERSION unquoted, so shell glob metacharacters are pathname-expanded against files in the current directory. Exploitation requires local control of a repository or working directory containing both the crafted version file and matching filenames, and the verified consequence is silent selection of a different installed interpreter or version under $PYENV_ROOT.
Summary
What happened
Wildcard handling in pyenv before 2.8.0 allows attackers to redirect interpreter selection via a crafted .python-version value. The is_version_safe() check in libexec/pyenv-version-file-read rejects only .. and /, while libexec/pyenv-version-name, pyenv-which, and pyenv-prefix later expand PYENV_VERSION unquoted, so shell glob metacharacters are pathname-expanded against files in the current directory. Exploitation requires local control of a repository or working directory containing both the crafted version file and matching filenames, and the verified consequence is silent selection of a different installed interpreter or version under $PYENV_ROOT.
The record
- CVE
- CVE-2026-68939
- Published
- Aug 18, 2026
- Updated
- Aug 18, 2026
- Vendor
- pyenv
- Product
- pyenv
- Classifications
- CWE-88, CWE-155, CWE-78
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Aug 18, 2026CVE publishedPublication date reported by the CVE source.
- Aug 18, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 2.8.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-g478-f579-9vp9 standalone reproduction PoCproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo