CVE-2026-113720
MEDIUM 4.4CVSS 4.0virtualenv: Seeded files retain permissions from an older cache
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, the app-data copy seeder uses shutil.copy() to copy cached package files into later environments, causing cached source modes to override the current run's umask. A cache populated under a permissive umask can therefore produce files writable by another local account in a later traversable environment, allowing package code such as pip/init.py to be modified and executed by the environment owner. The attacker cannot force the earlier umask, and a private destination parent prevents access. This issue is fixed in version 21.14.9.
- Published
- 20 Oct 2026
- Last modified
- 18 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-732
- Also known as
- BIT-virtualenv-2026-113720GHSA-fc2g-4w5p-6whmPYSEC-2026-4379
- Sources
- NVDJSONOSV GHSA-fc2g-4w5p-6whmJSONOSV PYSEC-2026-4379JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 4.4 | CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | virtualenv | virtualenvcpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:* |
>= 20.0.0, < 21.14.9 | 21.14.9 |
| OSV | PyPI | virtualenv | < 21.14.9 | 21.14.9 |
| OSV | PyPI | virtualenv | >= 20.0.0, < 21.14.9 | 21.14.9 |
References
- https://github.com/pypa/virtualenv/commit/35f0b33562790176dd186d0a3c517af3acc7a0e1 · Patch, WEB, FIX
- https://github.com/pypa/virtualenv/pull/3425 · Issue Tracking, Patch, WEB, FIX
- https://github.com/pypa/virtualenv/releases/tag/21.14.9 · Release Notes, WEB, ADVISORY
- https://github.com/pypa/virtualenv/security/advisories/GHSA-fc2g-4w5p-6whm · Exploit, Mitigation, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-113720 · ADVISORY
- https://github.com/pypa/virtualenv · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 20 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 23 Oct 2026)