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

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T19:39:52.633Z
- Modified: 2026-11-27T06:45:49.787Z
- Also known as: GHSA-394h-qwmc-48pf, BIT-VIRTUALENV-2026-113718, PYSEC-2026-4377
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- pypa virtualenv: < 21.14.9
- virtualenv (PyPI): before 21.14.9; from 21.3.0 before 21.14.9
- virtualenv virtualenv: from 21.3.0 before 21.14.9
- virtualenv (Bitnami): before 21.14.9

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-394h-qwmc-48pf> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/pypa/virtualenv/pull/3432> (fix, issue-tracking, patch, web)
- <https://github.com/pypa/virtualenv/commit/e5fc2e6e189a877ff559af288919e3525d13e5e0> (fix, patch, web)
- <https://github.com/pypa/virtualenv/releases/tag/21.14.9> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113718> (advisory, web)
- <https://github.com/pypa/virtualenv> (package)

## Sources

- CVE List: [CVE-2026-113718](https://www.cve.org/CVERecord?id=CVE-2026-113718), CVE Terms of Use, modified 2026-10-27
- GitHub Advisory Database: [GHSA-394h-qwmc-48pf](https://github.com/advisories/GHSA-394h-qwmc-48pf), CC-BY-4.0, modified 2026-11-18
- NVD: [CVE-2026-113718](https://nvd.nist.gov/vuln/detail/CVE-2026-113718), Public domain, modified 2026-11-17
- PyPA Advisory Database: [PYSEC-2026-4377](https://osv.dev/vulnerability/PYSEC-2026-4377), CC-BY-4.0, modified 2026-11-18
- Bitnami Vulnerability Database: [BIT-VIRTUALENV-2026-113718](https://osv.dev/vulnerability/BIT-VIRTUALENV-2026-113718), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-113718 · Whole record: https://cve.day/CVE-2026-113718.json · Rebuilt by cve.day 2026-11-27T07:07:32.130Z
