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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-20 · Modified: 2026-10-27
- Aliases: GHSA-5vjq-rrrf-7h2q, CGA-2cjh-gf28-8994, CGA-cgv9-wff4-2jjw, CGA-fcw5-f239-cv9v, CGA-g77h-c4hf-mr7x, CGA-g84m-77qj-3g7j, CGA-mx6j-56q3-6xr4, CGA-pgvr-6p24-p7qf, CGA-pjvr-6rpr-jwxj, CGA-5pf9-x7hh-hwrh, CGA-w86c-gvj2-2c4q, DEBIAN-CVE-2026-113726, UBUNTU-CVE-2026-113726, BIT-virtualenv-2026-113726, PYSEC-2026-4385
- Record: https://cvemate.com/vulnerability/CVE-2026-113726 · JSON: https://cvemate.com/vulnerability/CVE-2026-113726/json

## Description

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

## Signals

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

## Affected

- chainguard nemo-gym (Chainguard): All versions (No fix recorded) \| \< 0.5.0\_rc0\_git20260729-r8
- chainguard nemo-rl-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r14
- chainguard nemo-rl-cuda-13.0-automodel (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r14
- chainguard nemo-rl-cuda-13.0-mcore (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r14
- chainguard nemo-rl-cuda-13.0-sglang (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r14
- chainguard nemo-rl-cuda-13.0-vllm (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r14
- chainguard openstack-rally-2025.2 (Chainguard): All versions (No fix recorded) \| \< 4.1.0-r4
- chainguard openstack-rally-2026.1 (Chainguard): All versions (No fix recorded) \| \< 4.1.0-r4
- 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.4
- PyPI virtualenv (PyPI): \< 21.14.4
- virtualenv virtualenv: \< 21.14.4

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-5vjq-rrrf-7h2q>
- <https://github.com/pypa/virtualenv/commit/5b915367da82bd024b2a0d28d2f98007034b4aa2>
- <https://github.com/pypa/virtualenv/releases/tag/21.14.4>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113726>
- <https://github.com/pypa/virtualenv>
- <https://security-tracker.debian.org/tracker/CVE-2026-113726>
- <https://ubuntu.com/security/CVE-2026-113726>
- <https://www.cve.org/CVERecord?id=CVE-2026-113726>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113726.json>

---

Data as of 2026-12-05T03:38:13.064Z. 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
