CVE-2026-113724
published medium CVSS 3.1 · 4.5virtualenv: Deletion recovery can change a symlink target's mode
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pypa | — | virtualenv< 21.14.9 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvaarch64 | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvppc64le | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvs390x | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvx86_64 | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvaarch64 | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvppc64le | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvs390x | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvx86_64 | Advisory build | 21.15.1-1.1 | OPENSUSE-SU-2026:12372-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pypa | virtualenv | < 21.14.9 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
References
4Provider assertions
2GitHub_M · cna
virtualenv: Deletion recovery can change a symlink target's mode
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7517dbbf3697ba3a9a1a1ced44ef44ede7ede1df10a15832d1701fca56efee8e
- Ingested
- 27 Oct 2026, 11:25:30 UTC
- Source record
- Official CVE record