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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-113718— virtualenv: Xonsh activation literals depend on the script decoding codec

Quick assessment

Affected
pypa virtualenv
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.

virtualenv 是一个用于创建隔离的 Python 虚拟环境的工具。在 21.14.9 版本之前,POSIX 环境下的 xonsh 激活脚本中的 函数会使用 将可打印的非 ASCII 提示符或目标数据写入 UTF-8 编码的 文件,而 xonsh 在读取该脚本时会依据 环境变量进行解码。当使用 GBK 或 Big5 等遗留的多字节编码时,UTF-8 的尾部字节可能会“吸收”相邻引号前的反斜杠,导致字面量提前闭合,从而在用户源(source)生成的脚本时执行由攻击者控制的语句。该问题已在 21.14.9 版本中

CVSS 7.1 · High

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 1

VendorProduct Version RangeStatus
pypa virtualenv < 21.14.9 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-113718

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
virtualenv: Xonsh activation literals depend on the script decoding codec
Source: CVE Program / CVE List V5
Vulnerability Description
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, POSIX xonsh activation quote() uses repr() to write printable non-ASCII prompt or destination data into UTF-8 activate.xsh, while xonsh can read that script using $XONSH_ENCODING. Under a legacy multibyte codec such as GBK or Big5, a UTF-8 trail byte can consume the backslash before an adjacent quote, allowing the literal to close and attacker-influenced statements to execute when the user sources the generated script. This issue is fixed in version 21.14.9.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
pypa virtualenv < 21.14.9 -

II. Public POCs for CVE-2026-113718

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

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-113718 (2)

Vendor Advisories for CVE-2026-113718 (1)

Vendor Pages for CVE-2026-113718 (1)

Same Patch Batch · pypa · 2026-10-20 · 16 CVEs total

CVE-2026-113722 7.8 HIGH virtualenv: Generated POSIX console launchers interpret destination paths as shell syntax
CVE-2026-113725 7.8 HIGH virtualenv bash activate runs commands from an environment name with a backslash before $
CVE-2026-113726 7.8 HIGH virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST
CVE-2026-113776 7.8 HIGH virtualenv activation scripts run code from a path that contains a placeholder name
CVE-2026-113732 7.8 HIGH virtualenv activate.fish runs commands from a path or prompt with a backslash before a quo
CVE-2026-113723 7.1 HIGH virtualenv: Bash prompt values can change meaning under older compatibility modes
CVE-2026-113716 4.5 MEDIUM virtualenv: Builtin creation follows linked environment directories
CVE-2026-113719 4.5 MEDIUM virtualenv: Seed replacement does not contain metadata deletion paths
CVE-2026-113724 4.5 MEDIUM virtualenv: Deletion recovery can change a symlink target's mode
CVE-2026-113721 4.5 MEDIUM virtualenv: Generated files can follow existing destination links
CVE-2026-113713 4.4 MEDIUM virtualenv: Temporary app-data can leave dangling seed package links
CVE-2026-113720 4.4 MEDIUM virtualenv: Seeded files retain permissions from an older cache
CVE-2026-113714 2.3 LOW virtualenv: Downloaded wheel selection and caching precede verification
CVE-2026-113717 2.3 LOW virtualenv: Pip seeding with download omits wheel digest verification
CVE-2026-113715 2.0 LOW virtualenv: Venv configuration readback can reinterpret path boundaries

IV. Related Vulnerabilities

V. Comments for CVE-2026-113718

No comments yet


Leave a comment