CVE-2026-113713
virtualenv: Temporary app-data can leave dangling seed package links
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- Low
- User interaction
- Passive
What an attacker can affect
- Confidentiality
- Low
- Integrity
- High
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.4
virtualenv: Temporary app-data can leave dangling seed package links
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.
- Record
CVE-2026-113713- CVSS 4.0
- 4.4 Medium
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 - Weakness
- CWE-377
- Updated
- 2026-11-02
EUVDEUVD-2026-105259
4.4
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.
- Record
EUVD-2026-105259- CVSS 4.0
- 4.4 Medium
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-4f8h-vr72-p32c
4.4
virtualenv: Temporary app-data can leave dangling seed package links
Summary
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.
Anthropic's OSS Scanner reported this as ANT-2026-ZOE2GEPC in virtualenv-20261015-005, received on 15 October 2026.
This draft records source review and functional remediation checks. The reporter's cross-account code-execution claim
has not been independently reproduced.
Affected area
Integrity of app-data references after temporary cache cleanup.
Attacker-controlled input
Symlink seeding must be enabled through VIRTUALENV_SYMLINK_APP_DATA or symlink_app_data in the configuration file,
and app-data setup must fall back to a temporary directory. A missing or unwritable configured cache can cause that
fallback. Ordinary copy seeding does not leave these references.
The security concern requires a shared temporary-directory parent where another account can acquire the deleted cache pathname, followed by use of the affected environment. That account need not already be able to modify the environment or the private cache while it exists. This differs from the security policy's excluded case of an account that already controls live app-data contents. On a platform with a temporary-directory parent private to the environment owner, that cross-account condition is absent. Windows functional checks do not establish cross-account exposure under Windows defaults.
Affected code
The relevant 21.14.8 source is in symlink seeder, temporary cache cleanup.
Mechanism
When app-data setup falls back to a temporary directory, the command-line --symlink-app-data action is disabled. A
value supplied by VIRTUALENV_SYMLINK_APP_DATA or virtualenv.ini can still become the parser default, and the seeder
constructor accepts that value without rechecking the cache lifetime. It links site-packages/pip into the temporary
cache. Session cleanup deletes that cache, leaving a dangling link whose pathname can later be claimed by another
account on a shared temporary filesystem.
Reproduction and evidence
The scanner ran its reproduction as two unprivileged users, with root used only to switch identities. The environment
owner had an unwritable home, so app-data fell back to /tmp. The control used the command-line flag and received a
real pip directory. With VIRTUALENV_SYMLINK_APP_DATA=1, the new environment instead contained a pip link into a
deleted /tmp/tmpXXXXXXXX directory. A second uid recreated the target path and placed a fake pip/__init__.py there.
When the owner ran venv/bin/pip --version, that module created a marker inside the owner's environment and printed
this is not pip.
The cross-account path requires a shared temporary parent, a second account able to claim the deleted name, and later use of the environment. A private temporary parent removes that route. The report traces the incomplete temporary-cache guard to #1661, first released in 20.0.6. Public fix PR #3437 copies packages whenever app-data is temporary, whatever supplied the symlink option. The implementation review checked the remediation; it did not rerun the cross-account reproduction.
Attack sequence
sequenceDiagram
participant U as Environment owner
participant V as virtualenv seeder
participant T as Temporary app-data in /tmp
participant E as site-packages/pip link
participant A as Other local…
- Record
GHSA-4f8h-vr72-p32c- CVSS 4.0
- 4.4 Medium
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 - Weakness
- CWE-377
- Updated
- 2026-11-02
NVD
4.4
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.
- Record
CVE-2026-113713- CVSS 4.0
- 4.4 Medium
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 - Weakness
- CWE-377
- Updated
- 2026-11-02
OSV
4.4
virtualenv: Temporary app-data can leave dangling seed package links
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.
- Record
CVE-2026-113713- CVSS 4.0
- 4.4 Medium
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 - Weakness
- CWE-377
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-113713
4.4
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.
- Record
DEBIAN-CVE-2026-113713- CVSS 4.0
- 4.4 Medium
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 - Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-4f8h-vr72-p32c
4.4
virtualenv: Temporary app-data can leave dangling seed package links
Summary
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.
Anthropic's OSS Scanner reported this as ANT-2026-ZOE2GEPC in virtualenv-20261015-005, received on 15 October 2026.
This draft records source review and functional remediation checks. The reporter's cross-account code-execution claim
has not been independently reproduced.
Affected area
Integrity of app-data references after temporary cache cleanup.
Attacker-controlled input
Symlink seeding must be enabled through VIRTUALENV_SYMLINK_APP_DATA or symlink_app_data in the configuration file,
and app-data setup must fall back to a temporary directory. A missing or unwritable configured cache can cause that
fallback. Ordinary copy seeding does not leave these references.
The security concern requires a shared temporary-directory parent where another account can acquire the deleted cache pathname, followed by use of the affected environment. That account need not already be able to modify the environment or the private cache while it exists. This differs from the security policy's excluded case of an account that already controls live app-data contents. On a platform with a temporary-directory parent private to the environment owner, that cross-account condition is absent. Windows functional checks do not establish cross-account exposure under Windows defaults.
Affected code
The relevant 21.14.8 source is in symlink seeder, temporary cache cleanup.
Mechanism
When app-data setup falls back to a temporary directory, the command-line --symlink-app-data action is disabled. A
value supplied by VIRTUALENV_SYMLINK_APP_DATA or virtualenv.ini can still become the parser default, and the seeder
constructor accepts that value without rechecking the cache lifetime. It links site-packages/pip into the temporary
cache. Session cleanup deletes that cache, leaving a dangling link whose pathname can later be claimed by another
account on a shared temporary filesystem.
Reproduction and evidence
The scanner ran its reproduction as two unprivileged users, with root used only to switch identities. The environment
owner had an unwritable home, so app-data fell back to /tmp. The control used the command-line flag and received a
real pip directory. With VIRTUALENV_SYMLINK_APP_DATA=1, the new environment instead contained a pip link into a
deleted /tmp/tmpXXXXXXXX directory. A second uid recreated the target path and placed a fake pip/__init__.py there.
When the owner ran venv/bin/pip --version, that module created a marker inside the owner's environment and printed
this is not pip.
The cross-account path requires a shared temporary parent, a second account able to claim the deleted name, and later use of the environment. A private temporary parent removes that route. The report traces the incomplete temporary-cache guard to #1661, first released in 20.0.6. Public fix PR #3437 copies packages whenever app-data is temporary, whatever supplied the symlink option. The implementation review checked the remediation; it did not rerun the cross-account reproduction.
Attack sequence
sequenceDiagram
participant U as Environment owner
participant V as virtualenv seeder
participant T as Temporary app-data in /tmp
participant E as site-packages/pip link
participant A as Other local…
- Record
GHSA-4f8h-vr72-p32c- CVSS 4.0
- 4.4 Medium
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 - Weakness
- CWE-377
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-113713
4.4
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.
- Record
UBUNTU-CVE-2026-113713- CVSS 4.0
- 4.4 Medium
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 - Updated
- 2026-11-02
OSVAZL-110103 No score
CVE-2026-113713 affecting package python-virtualenv for versions less than 20.36.1-10
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.
- Record
AZL-110103- Updated
- 2026-11-07
OSVBIT-virtualenv-2026-113713 No score
virtualenv: Temporary app-data can leave dangling seed package links
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.
- Record
BIT-virtualenv-2026-113713- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
virtualenvPyPI |
21.14.8 up to 21.14.10 | 21.14.10 |
python-virtualenvAzure Linux:3 |
before 20.36.1-10 | 20.36.1-10 |
virtualenvBitnami |
21.14.8 up to 21.14.10 | 21.14.10 |
python-virtualenvDebian:12 |
All versions, plus listed versions 20.17.1+ds-120.19.0+ds-120.21.0+ds-120.23.0+ds-120.23.0+ds-2 Show 28 moreShow less20.24.1+ds-120.24.6+ds-120.24.6+ds-220.25.0+ds-120.25.0+ds-220.25.1+ds-120.26.1+ds-120.26.2+ds-120.26.6+ds-120.27.0+ds-120.28.0+ds-120.29.1+ds-120.29.3+ds-120.30.0+ds-120.30.0+ds-220.30.0+ds-320.31.2+ds-120.33.1+ds-120.34.0+ds-120.35.3+ds-120.35.4+ds-120.36.1+ds-120.38.0+ds-121.2.0+ds-121.2.4+ds-121.3.1+ds-121.4.1+ds-121.5.1+ds-1 |
None known |
python-virtualenvDebian:13 |
All versions, plus listed versions 20.31.2+ds-120.31.2+ds-1+deb13u120.33.1+ds-120.34.0+ds-120.35.3+ds-1 Show 8 moreShow less20.35.4+ds-120.36.1+ds-120.38.0+ds-121.2.0+ds-121.2.4+ds-121.3.1+ds-121.4.1+ds-121.5.1+ds-1 |
None known |
python-virtualenvDebian:14 |
All versions, plus listed versions 20.31.2+ds-120.33.1+ds-120.34.0+ds-120.35.3+ds-120.35.4+ds-1 Show 7 moreShow less20.36.1+ds-120.38.0+ds-121.2.0+ds-121.2.4+ds-121.3.1+ds-121.4.1+ds-121.5.1+ds-1 |
None known |
virtualenvPyPI |
21.14.8 up to 21.14.10, plus listed versions 21.14.9 |
21.14.10 |
python-virtualenvUbuntu:14.04:LTS |
All versions, plus listed versions 1.10.1-11.11-11.11-21.11.4-11.11.4-1ubuntu1 |
None known |
python-virtualenvUbuntu:16.04:LTS |
All versions, plus listed versions 1.11.6+ds-114.0.5+ds-114.0.5+ds-214.0.5+ds-415.0.0+ds-1 Show 6 moreShow less15.0.0+ds-215.0.1+ds-115.0.1+ds-215.0.1+ds-315.0.1+ds-3ubuntu115.0.1+ds-3ubuntu1.1 |
None known |
python-virtualenvUbuntu:18.04:LTS |
All versions, plus listed versions 15.1.0+ds-115.1.0+ds-1.1 |
None known |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
python-virtualenvUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 15.1.0+ds-215.1.0+ds-2build115.1.0+ds-2ubuntu120.0.13-120.0.17-120.0.17-1ubuntu0.320.0.17-1ubuntu0.420.0.17-1ubuntu0.4+esm1 |
None known |
python-virtualenvUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 20.4.6+ds-220.10.0+ds-120.12.1+ds-120.13.0+ds-120.13.0+ds-220.13.0+ds-2ubuntu0.1~esm1 |
None known |
python-virtualenvUbuntu:Pro:24.04:LTS |
All versions, plus listed versions 20.24.1+ds-120.24.6+ds-120.24.6+ds-220.25.0+ds-120.25.0+ds-220.25.0+ds-2ubuntu0.1~esm1 |
None known |
python-virtualenvUbuntu:26.10 |
All versions, plus listed versions 20.36.1+ds-121.4.1+ds-121.5.1+ds-1 |
None known |
python-virtualenvUbuntu:26.04:LTS |
All versions, plus listed versions 20.31.2+ds-120.35.3+ds-120.35.4+ds-120.36.1+ds-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | OSV | |
| facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-113713 is a medium vulnerability (CVSS 4.4) in Pypa Virtualenv, published October 20, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.20%, the 10th percentile. Fixed in virtualenv 21.14.10.
References
github.com/pypa/virtualenv/security/advisories/GHSA-4f8h-vr72-p32c
github.com/pypa/virtualenv/pull/3437
github.com/pypa/virtualenv/commit/b81995c3feab9e1edb453c75ffc6616e1a77335e
github.com/pypa/virtualenv/releases/tag/21.14.10
nvd.nist.gov/vuln/detail/CVE-2026-113713
github.com/advisories/GHSA-4f8h-vr72-p32c
Left out here: the rest of 2 source descriptions. The JSON record has them.