CVE-2026-113716

GHSA-cw65-gx24-rc82 · PYSEC-2026-4375 · published 20 Oct 2026 · updated 18 Nov 2026

virtualenv: Builtin creation follows linked environment directories

5.5MediumCVSS 4.5EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 21.14.9 and virtualenv 21.14.9.

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the builtin creator calls ensure_dir() for executable, library, and package directories, and ensure_dir() accepts an existing symlink to a directory because exists() follows it. Interpreter creation, seed installation, and activation generation then write through the linked parent outside the requested destination when another local account prepared the tree and the invoking user can access the target. The --clear option removes the planted tree first, while ordinary creation reaches it; arbitrary attacker-selected output bytes are not established. This issue is fixed in version 21.14.9.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pypa<21.14.9
virtualenvvirtualenv>=20.0.0 <21.14.921.14.9
pypi: virtualenv<21.14.9, >=20.0.0 <21.14.921.14.9

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in virtualenv (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-113716 severity on Zeptric[![CVE-2026-113716](https://zeptric.io/badge/cve/CVE-2026-113716.svg)](https://zeptric.io/cve/CVE-2026-113716)