Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
pyenv pyenv
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

pyenv 提供简单的 Python 版本管理功能。在版本 2.8.0 之前, 中的 函数会接受 文件中包含的 shell 通配元字符;同时, 、 、 、 、 、 和 中未加引号的 扩展会对当前目录进行路径名扩展(pathname expansion)。这使得攻击者可以通过在本地目录放置一个匹配的文件,静默地强制选择一个不同的已安装 Python 解释器或版本。该问题已在版本 2.8.0 中修复。

CVSS 2.0 · Low EPSS 0.17% · P6

Possible ATT&CK Techniques 1 AI

T1059.004 · Unix Shell

Affected Version Matrix 1

VendorProduct Version RangeStatus
pyenv pyenv < 2.8.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-68939

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Pyenv: Glob/wildcard metacharacters bypass is_version_safe(), causing silent version/interpreter substitution via unquoted expansion (CVE-2022-35861 residual)
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
pyenv pyenv < 2.8.0 -

II. Public POCs for CVE-2026-68939

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-68939

登录查看更多情报信息。

Patches & Fixes for CVE-2026-68939 (1)

Vendor Advisories for CVE-2026-68939 (1)

Vendor Pages for CVE-2026-68939 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-68939

No comments yet


Leave a comment