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


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.14% (4th 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-21282482
  • published21 Oct 2026
  • disclosed20 Oct 2026
  • creditAnthropic's OSS Scanner

Introduced: 20 Oct 2026

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

How to fix?

Upgrade virtualenv to version 21.14.9 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack via the onerror handler in src/virtualenv/util/path/_sync.py, which previously called os.chmod on a path without first checking whether it is a symbolic link. On Windows, when a read-only file cannot be deleted during a tree removal, the handler widened the file's permissions using os.chmod before retrying the deletion. Because no link check was performed, an attacker who can place a symlink at the target path can cause the handler to widen the permissions of the symlink's target, leading to unauthorized modification of file attributes and potential information disclosure or integrity impact.

Note: This is only exploitable if the attacker can traverse the target's parent directories to place a symlink at the affected path.

CVSS Base Scores

version 4.0
version 3.1