Skip to main content
CVE-2026-113721VulnerabilityPublished Updated

Virtualenv: Prior to 21.14.9, ViaTemplateActivator._generate() removes an existing output only when Path.exists() is

Affects virtualenvSource GCVE Database

0
Compare
Authoritative record:CVE-2026-113721· Medium 4.5

Not known to be exploited · CVSS 4.5 Medium : upgrade to 21.14.9 when convenient.

Data as of 18 Nov 2026, 13:07 UTC

CVSS 3.1 base score
4.5Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.14.5
Patch
Available – fixed in 21.14.9
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.

What to do

Upgrade virtualenv to 21.14.9.

Affected software

ProductAffectedFixed in
PyPIvirtualenvpkg:pypi/virtualenvOther threatsAffected
  • 20.0.0 – 21.14.8
  • >=20.0.0 <21.14.9
191 affected builds
Fixed in
  • 21.14.9

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

This vulnerability is fixed in virtualenv version 21.14.9. Users should upgrade to version 21.14.9 or later to remediate this issue. No other mitigation or workaround is indicated by the vendor advisory.

Description

Virtualenv versions prior to 21.14.9 contain a vulnerability in the ViaTemplateActivator._generate() method where existing output is only removed if Path.exists() returns true, allowing dangling symlinks to redirect activation content. Additionally, PyEnvCfg.write() opens pyvenv.cfg without replacing existing symbolic or hard links. This can enable a local attacker with limited privileges to cause environment creation to overwrite or create files outside the intended directory tree with the invoking user's permissions. The issue is fixed in version 21.14.9.

References

Community reviews

Loading reviews…