CVE-2026-113713

virtualenv: Temporary app-data can leave dangling seed package links

Published Oct 20, 2026 CVSS 4.0 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability stems from the virtualenv app‑data seeder (CWE‑377) leaving an environment linked to temporary package files that are deleted after creation. Consequently, the environment depends on a cache path controlled by an external source, allowing a dangling symlink to point to an untrusted location. An attacker who can influence the environment variable or configuration file that enables symlink_app_data could create such a malicious symlink. Once the virtual environment is activated, code from the unintended location may be executed, providing local code execution within the user’s environment.

Affected Systems

The flaw affects the Python package creator pypa’s virtualenv. Versions 21.14.8 and 21.14.9, as well as any installation that has not been updated to 21.14.10 or later, are vulnerable. Older or newer releases are not susceptible.

Risk and Exploitability

The CVSS score of 4.4 signals moderate severity. EPSS is < 1% and the vulnerability is not listed in the CISA KEV catalog. The weakness originates from improper handling of temporary data (CWE‑377), which leads to dangling symbolic links that depend on a cache path beyond the host’s control. The most probable attack vector is local, inferred from the fact that an attacker must affect the environment variable or configuration file that enables symlink_app_data to create the vulnerable environment. Exploitation requires the target to build or activate a virtual environment with the compromised settings, and the risk of exploitation is low to moderate; however, because remote access is not needed, any user with permission to create virtualenvs faces potential compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install virtualenv version 21.14.10 or newer, which fixes the dangling app‑data issue.
  • Ensure that the configuration setting symlink_app_data is disabled or removed from environment variables and config files to prevent unintended links.
  • Recreate any virtual environments that were built while the vulnerability existed and delete any temporary package files or lingering links that may have been left behind.
  • Validate any paths or inputs used by virtualenv to derive seed package links, ensuring they are not manipulated to create dangling symlinks, thereby addressing CWE‑377.

Generated by OpenCVE AI on October 22, 2026 at 20:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4f8h-vr72-p32c virtualenv: Temporary app-data can leave dangling seed package links
History
Type Values Removed Values Added
First Time appeared Virtualenv
Virtualenv virtualenv
CPEs cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*
Vendors & Products Virtualenv
Virtualenv virtualenv
Metrics cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 6.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-59
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Pypa
Pypa virtualenv
Vendors & Products Pypa
Pypa virtualenv
Type Values Removed Values Added
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.
Title virtualenv: Temporary app-data can leave dangling seed package links
Weaknesses CWE-377
References
Metrics cvssV4_0

{'score': 4.4, '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'}

Weaknesses
  • CWE-377

    Insecure Temporary File

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 27, 2026, 1:37 PM
Reserved
Oct 20, 2026, 4:03 PM
Status
Analyzed
Published
Oct 20, 2026, 7:17 PM
Modified
Nov 17, 2026, 8:26 PM
Severity
Moderate
Public date
Oct 20, 2026, 7:06 PM