Symlink Attack Affecting virtualenv package, versions [21.14.8,21.14.10)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.11% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-VIRTUALENV-21282425
  • published21 Oct 2026
  • disclosed20 Oct 2026
  • creditUnknown

Introduced: 20 Oct 2026

NewCVE-2026-113713  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade virtualenv to version 21.14.10 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack via the FromAppData seed mechanism in src/virtualenv/seed/embed/via_app_data/via_app_data.py, when symlink_app_data is enabled against a transient (temporary) app-data store. In this configuration, virtualenv creates symlinks from the newly created virtual environment's seed packages to temporary files that are deleted after setup completes, leaving the environment with dangling symlinks. An attacker who can write to the temporary directory before or after deletion can substitute malicious package files that the virtual environment then resolves through those symlinks, leading to arbitrary code execution within the environment.

Note: This is only exploitable when symlink_app_data is enabled and virtualenv is configured to use a transient app-data store, either via environment variables or configuration files.

CVSS Base Scores

version 4.0
version 3.1