# CVE-2026-113726: virtualenv activate runs commands from the environment name in zsh with PROMPT_SUBST

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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.38%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-10-20T22:05:24.253Z
- Modified: 2026-11-27T06:45:51.662Z
- Also known as: GHSA-5vjq-rrrf-7h2q, BIT-VIRTUALENV-2026-113726, PYSEC-2026-4385
- Weaknesses: CWE-78, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.13.0, the bash activate script that zsh also sources leaves the environment name unescaped; from 21.13.0 until 21.14.4, it escapes backslashes, dollar signs, and backticks only when BASH_VERSION is set, so zsh receives the raw value. The script assigns that value to PS1. In zsh with PROMPT_SUBST, an attacker-influenced environment directory, --prompt, or VIRTUALENV_PROMPT value containing command, parameter, or arithmetic expansion syntax can therefore execute commands in the user's shell each time the prompt is drawn. A percent sign is separately interpreted as a zsh prompt escape but does not by itself execute commands. Plain zsh with PROMPT_SUBST disabled and bash are not affected by this mechanism. This issue is fixed in version 21.14.4.

(As written by CVE List.)

## Affected

- pypa virtualenv: < 21.14.4
- virtualenv (PyPI): before 21.14.4
- virtualenv virtualenv: before 21.14.4
- virtualenv (Bitnami): before 21.14.4

## Every score

- GitHub_M: 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`
- GitHub: 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-5vjq-rrrf-7h2q> (advisory, fix, patch, vendor-advisory, web)
- <https://github.com/pypa/virtualenv/commit/5b915367da82bd024b2a0d28d2f98007034b4aa2> (fix, patch, web)
- <https://github.com/pypa/virtualenv/releases/tag/21.14.4> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113726> (advisory, web)
- <https://github.com/pypa/virtualenv> (package)

## Sources

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

---

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