7.1High

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

pypa virtualenv Published: (1 month ago)

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.

Weakness (CWE): CWE-94

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
pypa virtualenv < 21.14.9
virtualenv virtualenv 21.3.0 – < 21.14.9

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:* ≥ 21.3.0 < 21.14.9