CVE-2026-113721: virtualenv: Generated files can follow existing destination links
Vulnerability summary
CVE-2026-113721 is a medium (CVSS 4.5) vulnerability in pypa virtualenv. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 9.8% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 20-10-2026PublishedVulnerability first disclosed.
- 28-10-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 6 sources · 1 version- NVDNIST4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- OSV · PypiEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- OSV · ChainguardEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- OSV · DebianEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- OSV · UbuntuEcosystem advisory · calculated4.5MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
Increase +0.05 pp
From 0.14% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundVirtualenv
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard7 products
- nemo-gymAll versions (No fix recorded) | < 0.5.0_rc0_git20260729-r8
- nemo-rl-cuda-13.0All versions (No fix recorded) | < 0.7.0-r15
- nemo-rl-cuda-13.0-automodel< 0.7.0-r15
- nemo-rl-cuda-13.0-mcoreAll versions (No fix recorded) | < 0.7.0-r15
- nemo-rl-cuda-13.0-sglangAll versions (No fix recorded)
Debian1 product
- python-virtualenvAll versions (No fix recorded) | < 21.15.6+ds-1
Pypa1 product
- virtualenv< 21.14.9
PyPI1 product
- virtualenv< 21.14.9 | ≥ 20.0.0, < 21.14.9
Ubuntu1 product
- python-virtualenvAll versions (No fix recorded)
Virtualenv1 product
- virtualenv≥ 20.0.0, < 21.14.9
6 vendors · 12 products
References
10 links- github.com/pypa/virtualenv/security/advisories/GHSA-558c-9hv2-4prjX Refsource CONFIRMWEBAdvisoryREPORTExploitMitigationVendor AdvisoryEVIDENCE
- github.com/pypa/virtualenv/commit/d25f28699eefb1fc34a251e5adf2b5de844c36cdX Refsource MISCWEBFIXPatch
- github.com/pypa/virtualenvPACKAGE