virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.11, PyEnvCfg.write() writes prompt values verbatim to the line-oriented pyvenv.cfg format while PyEnvCfg._read_values() parses the file with str.splitlines() and accepts the last value for duplicate keys. An attacker who influences --prompt, VIRTUALENV_PROMPT, or configuration input can insert a recognized line boundary and additional keys, including home, causing consumers to use an attacker-selected base interpreter or corrupted environment metadata. The security impact requires prompt input from outside the operator's trust boundary; directly supplied prompt content primarily corrupts the operator's own environment. This issue is fixed in version 21.7.11.
CVE-2026-102938
This medium-severity CVE scores 5.8 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.1% (2nd percentile of EPSS-scored CVEs). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
A fix is available — apply it.
- CVSS v3
- 5.8
- EG Score
- 5.8MEDIUMmedium confidence
- EG Risk
- 26EG Risk 26/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity58% × 45%Exploitation0% × 40%Automatability0% × 15%CISA SSVC: Track at every mission impact level.Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 0.1%
- EPSS %ILE
- 2nd
- KEV
- Not listed
CISA SSVCTrack at every mission impact level.
A fix is available. Apply it within your standard update timelines.
Exploitation none (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
September 29, 2026
Last Modified
September 30, 2026
Advisory Details (4)
Auto-updated Sep 29, 202621.7.11
Patch available: pypa/virtualenv 21.7.11
https://github.com/pypa/virtualenv/releases/tag/21.7.11commit a30f99546104 (pypa/virtualenv)
Patch available: pypa/virtualenv 21.7.11 (contains commit a30f99546104)
https://github.com/pypa/virtualenv/commit/a30f995461043acb6cacbf3a890951563ccf7140🐛 fix(create): keep pyvenv.cfg values on a single line
Patch available: pypa/virtualenv 21.7.11 (PR #3247 merged 2026-09-17)
https://github.com/pypa/virtualenv/pull/3247virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection · Advisory · pypa/virtualenv · GitHub
https://github.com/pypa/virtualenv/security/advisories/GHSA-9h9j-4vrj-gf7gVendor Advisories for CVE-2026-102938(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| virtualenv | 0.8 ... 21.7.9 (280 versions) | 21.7.11 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 11× in last 7d / 11× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-10-03 14:52 UTCEG score recompute
- 2026-10-03 14:25 UTCEPSS rescore
- 2026-10-02 16:43 UTCEG score recompute
- 2026-10-01 19:49 UTCEPSS rescore
- 2026-09-30 20:23 UTCEG score recompute
- 2026-09-30 19:56 UTCEG score recompute
- 2026-09-30 19:30 UTCEG score recompute
- 2026-09-30 15:02 UTCEPSS rescore
- 2026-09-29 21:21 UTCEG score recompute
- 2026-09-29 21:05 UTCEG score recompute
- 2026-09-29 21:03 UTCMITRE cvelistV5first tracked
Related CVEs(same product + same CWE)
Same product
6 shownPyPI:virtualenv
Frequently asked(5)
What is CVE-2026-102938?
When was CVE-2026-102938 disclosed?
Is CVE-2026-102938 actively exploited?
What is the CVSS score of CVE-2026-102938?
How do I remediate CVE-2026-102938?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-102938
Is Your Infrastructure Affected by CVE-2026-102938?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.