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-21282510
  • 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 during directory tree removal on Windows. When a read-only file or directory cannot be deleted, the handler widens the entry's permissions using os.chmod before retrying the deletion, creating a race window in which another local user can access the target path with the temporarily elevated mode. An attacker who can traverse the parent directories of the target can exploit this window to read or modify files they would otherwise be denied access to.

Note: This is only exploitable if another account can traverse the target's parent directories, and the widened mode is applied only transiently during the deletion retry on Windows.

CVSS Base Scores

version 4.0
version 3.1