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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 21.14.9 (CNA); fix release not confirmed
- Status: published
- Published: 2026-10-20 · Modified: 2026-10-27
- Aliases: DEBIAN-CVE-2026-113718, UBUNTU-CVE-2026-113718, GHSA-394h-qwmc-48pf, CGA-342w-rxpr-xmw8, CGA-rrx3-28mm-r698, CGA-4734-jrmq-gh2x, CGA-pmc7-x5x6-vv62, CGA-f463-wx4q-hcr7, BIT-virtualenv-2026-113718, PYSEC-2026-4377
- Record: https://cvemate.com/vulnerability/CVE-2026-113718 · JSON: https://cvemate.com/vulnerability/CVE-2026-113718/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.235%, percentile 15.383%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard nemo-gym (Chainguard): All versions (No fix recorded) \| \< 0.5.0\_rc0\_git20260729-r8
- chainguard nemo-rl-cuda-13.0 (Chainguard): \< 0.7.0-r15
- chainguard nemo-rl-cuda-13.0-mcore (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r15
- chainguard nemo-rl-cuda-13.0-sglang (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r15
- chainguard nemo-skills (Chainguard): All versions (No fix recorded) \| \< 0.7.0\_git20260911-r6
- debian python-virtualenv (Debian): All versions (No fix recorded) \| \< 21.15.6+ds-1
- ubuntu python-virtualenv (Ubuntu): All versions (No fix recorded)
- pypa virtualenv: \< 21.14.9
- PyPI virtualenv (PyPI): \< 21.14.9 \| ≥ 21.3.0, \< 21.14.9
- virtualenv virtualenv: ≥ 21.3.0, \< 21.14.9

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-394h-qwmc-48pf>
- <https://github.com/pypa/virtualenv/pull/3432>
- <https://github.com/pypa/virtualenv/commit/e5fc2e6e189a877ff559af288919e3525d13e5e0>
- <https://github.com/pypa/virtualenv/releases/tag/21.14.9>
- <https://security-tracker.debian.org/tracker/CVE-2026-113718>
- <https://ubuntu.com/security/CVE-2026-113718>
- <https://www.cve.org/CVERecord?id=CVE-2026-113718>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113718>
- <https://github.com/pypa/virtualenv>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113718.json>

---

Data as of 2026-12-05T03:54:49.615Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
