{"cve":"CVE-2026-113721","nvd":{"published":"2026-10-20T20:17:18.653","modified":"2026-10-22T16:47:38.403","status":"Awaiting Analysis","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":4.5},"cwes":["CWE-59"],"references":["https://github.com/pypa/virtualenv/commit/d25f28699eefb1fc34a251e5adf2b5de844c36cd","https://github.com/pypa/virtualenv/pull/3431","https://github.com/pypa/virtualenv/releases/tag/21.14.9","https://github.com/pypa/virtualenv/security/advisories/GHSA-558c-9hv2-4prj"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:26.291718493+00:00"},"epss":{"cve":"CVE-2026-113721","score":0.00144,"percentile":0.03634,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-558c-9hv2-4prj","url":"https://osv.dev/vulnerability/GHSA-558c-9hv2-4prj","summary":"virtualenv: Generated files can follow existing destination links","modified":"2026-10-22T17:15:04.313158783Z","packages":[{"ecosystem":"PyPI","name":"virtualenv","purl":"pkg:pypi/virtualenv","ranges":["<21.14.9"],"fixed":["21.14.9"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}