CVE Catalog

CVE-2026-113721

MediumCVSS 4.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

4th percentile - higher than 4% of all known CVEs

Summary

In virtualenv before 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 can cause files outside the requested tree to be created or overwritten.

Risk Assessment

An attacker with a local account could cause files to be written outside the intended environment directory with the invoking user's permissions. This may compromise system integrity or enable further attacks.

Recommendation

Update virtualenv to version 21.14.9 or later. Ensure the destination parent directory is controlled solely by the environment owner during creation.

Other vulnerabilities in virtualenv

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS