CVE-2026-113724
virtualenv: Deletion recovery can change a symlink target's mode
Reported by github_m · Published October 20, 2026
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the safe_delete() deletion error handler responds to a failed removal by reading mode bits with os.lstat(path) and applying owner-write permission with os.chmod(path, ...), which follows a symlink. A planted link inside a read-only directory can therefore cause a victim-owned target outside the destination that is initially not writable by the invoking user to become broadly writable before the retry fails, provided that user owns the target and can change its mode. Another account can use the widened mode only if it can traverse the target's parent directories; root does not reach the demonstrated failure path, and the operation does not itself read the target. This issue is fixed in version 21.14.9.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| openstack-rally-2026.1 | Chainguard | 4.1.0-r5 |
| py3-cassandra-medusa | Wolfi | 0.31.0-r1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| pypa | virtualenv | < 21.14.9 |
| pypa | virtualenv | |
| chainguard | openstack-rally-2026.1 | 0 |
| wolfi | py3-cassandra-medusa | 0 |
| pypa | virtualenv | 0 |
| chainguard | py3-cassandra-medusa | 0 |
| chainguard | openstack-rally-2025.2 | 0 |
| PyPI | virtualenv | 0 |
| chainguard | request-1276 | 0 |
Timeline
- Oct 20, 2026 CVE Published
- Oct 21, 2026 EPSS Score (3 in total, the first dated here)
- Oct 27, 2026 CVE Updated
- Oct 31, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-113724
vulnetix vdb fixes CVE-2026-113724
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-113724/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/pypa/virtualenv/security/advisories/GHSA-43mp-35q3-x3fq x_refsource_CONFIRM
- https://github.com/pypa/virtualenv/pull/3427 x_refsource_MISC
- https://github.com/pypa/virtualenv/commit/2bfdc0230d1b2685fedfcfe66c835b9a2ec7c440 x_refsource_MISC
- https://github.com/pypa/virtualenv/releases/tag/21.14.9 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-113724 advisory
- https://github.com/advisories/GHSA-43mp-35q3-x3fq advisory