Symlink Attack Affecting virtualenv package, versions [,20.36.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (1st 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-14912451
  • published11 Jan 2026
  • disclosed10 Jan 2026
  • creditgokussj

Introduced: 10 Jan 2026

CVE-2026-22702  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade virtualenv to version 20.36.1 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack via a race condition in the directory creation process. An attacker can gain unauthorized access to sensitive data or modify files by exploiting a time gap between directory existence checks and their creation, redirecting operations to attacker-controlled locations.

Workaround

Ensure isolation of untrusted users from the shared filesystem by setting VIRTUALENV_OVERRIDE_APP_DATA to a directory owned by the current user, with appropriate permissions.

CVSS Base Scores

version 4.0
version 3.1