# CVE-2026-113721: virtualenv: Generated files can follow existing destination links

- Priority: **Routine**
- Reason: Not severe (CVSS 4.5, 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-28
- Aliases: GHSA-558c-9hv2-4prj, DEBIAN-CVE-2026-113721, CGA-2572-vx4v-2jrq, CGA-2jc3-34xm-vh7g, CGA-cxvp-9rvq-cxrf, UBUNTU-CVE-2026-113721, CGA-jccp-4c4h-6p8r, CGA-r7f9-4528-4v7v, CGA-p9xh-j4gh-38q9, CGA-g772-4v3v-pqpv, BIT-virtualenv-2026-113721, PYSEC-2026-4380
- Record: https://cvemate.com/vulnerability/CVE-2026-113721 · JSON: https://cvemate.com/vulnerability/CVE-2026-113721/json

## Description

```text
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, ViaTemplateActivator._generate() removes an existing output only when Path.exists() is true, allowing a dangling symlink to survive and redirect generated activation content, while PyEnvCfg.write() opens pyvenv.cfg without first replacing an existing symbolic or hard link. Another local account that prepares final entries inside the destination can therefore cause environment creation to create or overwrite files outside the requested tree with constrained virtualenv-generated content and the invoking user's permissions. The destination parent must remain controlled by the environment owner during creation; concurrent parent-directory replacement is a separate concern. This issue is fixed in version 21.14.9.
```

## Signals

- CVSS: 4.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- EPSS: 0.196%, percentile 9.811%, 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): All versions (No fix recorded) \| \< 0.7.0-r15
- chainguard nemo-rl-cuda-13.0-automodel (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)
- chainguard nemo-rl-cuda-13.0-vllm (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r15
- chainguard nemo-skills (Chainguard): \< 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 \| ≥ 20.0.0, \< 21.14.9
- virtualenv virtualenv: ≥ 20.0.0, \< 21.14.9

## References

- <https://github.com/pypa/virtualenv/security/advisories/GHSA-558c-9hv2-4prj>
- <https://github.com/pypa/virtualenv/pull/3431>
- <https://github.com/pypa/virtualenv/commit/d25f28699eefb1fc34a251e5adf2b5de844c36cd>
- <https://github.com/pypa/virtualenv/releases/tag/21.14.9>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-113721>
- <https://github.com/pypa/virtualenv>
- <https://security-tracker.debian.org/tracker/CVE-2026-113721>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113721.json>
- <https://ubuntu.com/security/CVE-2026-113721>
- <https://www.cve.org/CVERecord?id=CVE-2026-113721>

---

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