{"id":"CVE-2026-113719","published":"2026-10-20T19:42:07Z","modified":"2026-10-27T11:01:51Z","title":"virtualenv: Seed replacement does not contain metadata deletion paths","vendor":"pypa","product":"virtualenv","tier":"tail","description":{"text":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInstall._uninstall_previous_version() accepts existing seed-package metadata and _uninstall_dist() joins entries from top_level.txt and RECORD to site-packages without checking containment. When a reused destination contains distribution metadata influenced by another account, relative traversal, absolute entries, or linked parents can cause app-data reseeding to delete files outside the environment or the environment root with the invoking user's permissions, provided that user has deletion rights over the named paths. The deletion occurs during environment creation before any later use of the environment. Fresh environments without existing package metadata and creation with --clear do not enter this cleanup path. This issue is fixed in version 21.14.9.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00152,"percentile":0.02275,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-hhxq-47xx-j5xx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pypa/virtualenv/pull/3428","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/commit/e3cea6fa10a50fa29cf1fdddd772458fba076d5f","tags":["x_refsource_MISC"]},{"url":"https://github.com/pypa/virtualenv/releases/tag/21.14.9","tags":["x_refsource_MISC"]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":0.45},{"name":"CVSS severity","points":3.15}]},"vendorSlug":"pypa","affectedVersions":[{"vendor":"pypa","product":"virtualenv","versions":["< 21.14.9"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-27T11:01:18.774578Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"virtualenv","vulnerableRanges":["<21.14.9",">=20.8.1, <21.14.9"],"patched":["21.14.9"],"from":["GHSA-hhxq-47xx-j5xx","PYSEC-2026-4378"],"provenance":"source"}],"summary":{"text":"virtualenv (pypa), prior to 21.14.9, fails to check containment when its seed-package replacement routine deletes files listed in an existing distribution's top_level.txt and RECORD metadata, so paths can escape site-packages. An attacker who can influence the package metadata in a reused environment destination, with local access and low privileges, can cause the invoking user's deletion of files outside the environment or environment root during environment creation, provided that user has deletion rights over those paths; fresh environments and creation with --clear are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:17Z"},"euvd":{"id":"EUVD-2026-105300","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pypa-virtualenv-cve-2026-102925","children":[{"from":"CVE-2026-113719","to":"CVE-2026-113721","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/virtualenv/seed/embed/via_app_data/pip_install/base.py"],"commits":["https://github.com/pypa/virtualenv/commit/e3cea6fa10a50fa29cf1fdddd772458fba076d5f","https://github.com/pypa/virtualenv/commit/d25f28699eefb1fc34a251e5adf2b5de844c36cd"],"basis":"rarely changed file"}]},{"from":"CVE-2026-113719","to":"CVE-2026-113722","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/virtualenv/seed/embed/via_app_data/pip_install/base.py"],"commits":["https://github.com/pypa/virtualenv/commit/e3cea6fa10a50fa29cf1fdddd772458fba076d5f","https://github.com/pypa/virtualenv/commit/2519941bed33ee0d3ac99277f67913e439e476a9"],"basis":"rarely changed file"}]}]}}