{"vuln_id":"CVE-2026-113713","aliases":["GHSA-4f8h-vr72-p32c"],"description":"virtualenv is a tool for creating isolated virtual python environments. From 21.14.8 until 21.14.10, the app-data seeder can leave an environment linked to temporary package files that virtualenv deletes when creation finishes. The environment-variable and configuration-file forms of symlink_app_data can enable this state even though the command-line flag is disabled for temporary app-data. The resulting environment depends on a cache pathname that its owner no longer controls. This issue is fixed in version 21.14.10.","published_at":"2026-10-20T19:17:33.887000Z","modified_at":"2026-11-21T19:00:08.638417Z","first_seen_at":"2026-11-21T19:15:47.045176Z","severity":"medium","severity_source":"nvd","cvss_score":4.4,"cvss_vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-377"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00188,"epss_percentile":0.08363,"nvd_status":"Analyzed","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-113713"},"matched_alias":null,"items":[{"id":10769,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-4f8h-vr72-p32c: virtualenv: Temporary app-data can leave dangling seed package links","summary":"virtualenv: Temporary app-data can leave dangling seed package links\n\n## Summary\n\nThe app-data seeder can leave an environment linked to temporary package files that virtualenv deletes when creation\nfinishes. The environment-variable and configuration-file forms of `symlink_app_data` can enable this state even though\nthe command-line flag is disabled for temporary app-data. The resulting environment depends on a cache pathname that its\nowner no longer controls.\n\nAnthropic's OSS Scanner reported this as `ANT-2026-ZOE2GEPC` in `virtualenv-20261015-005`, received on 15 October 2026.\nThis draft records source review and functional remediation checks. The reporter's cross-account code-execution claim\nhas not been independently reproduced.\n\n## Affected area\n\nIntegrity of app-data references after temporary cache cleanup.\n\n## Attacker-controlled input\n\nSymlink seeding must be enabled through `VIRTUALENV_SYMLINK_APP_DATA` or `symlink_app_data` in the configuration file,\nand app-data setup must fall back to a temporary directory. A missing or unwritable configured cache can cause that\nfallback. Ordinary copy seeding does not leave these references.\n\nThe security concern requires a shared temporary-directory parent where another account can acquire the deleted cache\npathname, followed by use of the affected environment. That account need not already be able to modify the environment\nor the private cache while it exists. This differs from the security policy's excluded case of an account that already\ncontrols live app-data contents. On a platform with a temporary-directory parent private to the environment owner, that\ncross-account condition is absent. Windows functional checks do not establish cross-account exposure under Windows\ndefaults.\n\n## Affected code\n\nThe relevant 21.14.8 source is in\n[symlink seeder](https://github.com/pypa/virtualenv/blob/a795ab116356afde11039cf2763d77e8a06da738/src/virtualenv/seed/embed/via_app_data/via_app_data.py),\n[temporary cache cleanup](https://github.com/pypa/virtualenv/blob/a795ab116356afde11039cf2763d77e8a06da738/src/virtualenv/app_data/via_tempdir.py).\n\n## Mechanism\n\nWhen app-data setup falls back to a temporary directory, the command-line `--symlink-app-data` action is disabled. A\nvalue supplied by `VIRTUALENV_SYMLINK_APP_DATA` or `virtualenv.ini` can still become the parser default, and the seeder\nconstructor accepts that value without rechecking the cache lifetime. It links `site-packages/pip` into the temporary\ncache. Session cleanup deletes that cache, leaving a dangling link whose pathname can later be claimed by another\naccount on a shared temporary filesystem.\n\n## Reproduction and evidence\n\nThe scanner ran its reproduction as two unprivileged users, with root used only to switch identities. The environment\nowner had an unwritable home, so app-data fell back to `/tmp`. The control used the command-line flag and received a\nreal pip directory. With `VIRTUALENV_SYMLINK_APP_DATA=1`, the new environment instead contained a `pip` link into a\ndeleted `/tmp/tmpXXXXXXXX` directory. A second\n\nAffected: PyPI:virtualenv\n\nFixed in: 21.14.10\n\nReferences:\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-4f8h-vr72-p32c\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-113713\nhttps://github.com/pypa/virtualenv/pull/3437\nhttps://github.com/pypa/virtualenv/commit/b81995c3feab9e1edb453c75ffc6616e1a77335e\nhttps://github.com/pypa/virtualenv\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.10","url":"https://osv.dev/vulnerability/GHSA-4f8h-vr72-p32c","published_at":"2026-10-23T22:26:57Z","updated_at":"2026-11-18T12:10:36.831511Z","fetched_at":"2026-11-21T19:15:55.946163Z","severity":"medium","cvss_score":6.0,"epss":0.00188,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"virtualenv","vuln_id":"CVE-2026-113713","vuln_ids":["CVE-2026-113713","BIT-VIRTUALENV-2026-113713","GHSA-4F8H-VR72-P32C","PYSEC-2026-4372"],"tags":["osv","pypi","fix-available"],"cluster_id":4089,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10769","html":"https://vulnwatch.ve1ve2.com/item/10769"}},{"id":11327,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-113713: virtualenv is a tool for creating isolated virtual python environments. From 21.14.8 until 21.14.10, the app-data seeder can leave an environment linked to tem…","summary":"virtualenv is a tool for creating isolated virtual python environments. From 21.14.8 until 21.14.10, the app-data seeder can leave an environment linked to temporary package files that virtualenv deletes when creation finishes. The environment-variable and configuration-file forms of symlink_app_data can enable this state even though the command-line flag is disabled for temporary app-data. The resulting environment depends on a cache pathname that its owner no longer controls. This issue is fixed in version 21.14.10.\n\nAffected: Debian:12:python-virtualenv, Debian:13:python-virtualenv, Debian:14:python-virtualenv\n\nFixed in: 21.15.6+ds-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-113713","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-113713","published_at":"2026-10-20T19:17:33.887000Z","updated_at":"2026-11-21T19:00:08.638417Z","fetched_at":"2026-11-21T19:23:21.853704Z","severity":"medium","cvss_score":6.0,"epss":0.00188,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:python-virtualenv","vuln_id":"CVE-2026-113713","vuln_ids":["CVE-2026-113713","DEBIAN-CVE-2026-113713","GHSA-4F8H-VR72-P32C"],"tags":["osv","debian","fix-available"],"cluster_id":4088,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11327","html":"https://vulnwatch.ve1ve2.com/item/11327"}},{"id":10770,"source":{"id":"osv","name":"OSV.dev"},"title":"PYSEC-2026-4372: virtualenv is a tool for creating isolated virtual python environments. From 21.14.8 until 21.14.10, the app-data seeder can leave an environment linked to tem…","summary":"virtualenv is a tool for creating isolated virtual python environments. From 21.14.8 until 21.14.10, the app-data seeder can leave an environment linked to temporary package files that virtualenv deletes when creation finishes. The environment-variable and configuration-file forms of symlink_app_data can enable this state even though the command-line flag is disabled for temporary app-data. The resulting environment depends on a cache pathname that its owner no longer controls. This issue is fixed in version 21.14.10.\n\nAffected: PyPI:virtualenv\n\nFixed in: 21.14.10\n\nReferences:\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.10\nhttps://github.com/pypa/virtualenv/commit/b81995c3feab9e1edb453c75ffc6616e1a77335e\nhttps://github.com/pypa/virtualenv/pull/3437\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-4f8h-vr72-p32c","url":"https://osv.dev/vulnerability/PYSEC-2026-4372","published_at":"2026-10-20T19:17:33.887000Z","updated_at":"2026-11-18T12:10:36.831511Z","fetched_at":"2026-11-21T19:15:55.946164Z","severity":"medium","cvss_score":6.0,"epss":0.00188,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"virtualenv","vuln_id":"CVE-2026-113713","vuln_ids":["CVE-2026-113713","BIT-VIRTUALENV-2026-113713","GHSA-4F8H-VR72-P32C","PYSEC-2026-4372"],"tags":["osv","pypi","fix-available"],"cluster_id":4088,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10770","html":"https://vulnwatch.ve1ve2.com/item/10770"}},{"id":3757,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-113713: virtualenv is a tool for creating isolated virtual python environments. From 21.14.8 until 21.14.10, the app-data seeder can leave an environment linked to tem…","summary":"virtualenv is a tool for creating isolated virtual python environments. From 21.14.8 until 21.14.10, the app-data seeder can leave an environment linked to temporary package files that virtualenv deletes when creation finishes. The environment-variable and configuration-file forms of symlink_app_data can enable this state even though the command-line flag is disabled for temporary app-data. The resulting environment depends on a cache pathname that its owner no longer controls. This issue is fixed in version 21.14.10.\n\nReferences:\nhttps://github.com/pypa/virtualenv/commit/b81995c3feab9e1edb453c75ffc6616e1a77335e\nhttps://github.com/pypa/virtualenv/pull/3437\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.10\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-4f8h-vr72-p32c\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-4f8h-vr72-p32c","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113713","published_at":"2026-10-20T19:17:33.887000Z","updated_at":"2026-11-17T20:26:31.213000Z","fetched_at":"2026-11-21T19:15:31.479282Z","severity":"medium","cvss_score":6.0,"epss":0.00188,"is_kev":false,"has_exploit":true,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-113713","vuln_ids":["CVE-2026-113713","GHSA-4F8H-VR72-P32C"],"tags":["CWE-377"],"cluster_id":4088,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3757","html":"https://vulnwatch.ve1ve2.com/item/3757"}}]}