CVE-2026-102938
published medium CVSS 4.0 · 5.8virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pypa | — | virtualenv< 21.7.11 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3295 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3296 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | python311-virtualenvnoarch | Advisory build | 20.22.0-150400.9.12.1 | SUSE-SU-2026:4652-1 |
| Amazon Linux | AL2023 | python-virtualenvnoarch | Listed in advisory | Not stated | ALAS2023-2026-3295 |
| SUSE / openSUSE | SLE-15-SP5 | python311-virtualenvnoarch | Advisory build | 20.22.0-150400.9.12.1 | SUSE-SU-2026:4652-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-virtualenvnoarch | Advisory build | 20.22.0-150400.9.12.1 | SUSE-SU-2026:4652-1 |
Show 18 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP7 | python311-virtualenvnoarch | Advisory build | 20.22.0-150400.9.12.1 | SUSE-SU-2026:4652-1 |
| SUSE / openSUSE | SLE-16 | python313-virtualenvnoarch | Advisory build | 20.29.3-160000.4.1 | SUSE-SU-2026:24243-1 |
| SUSE / openSUSE | SLE-16 | python313-virtualenvnoarch | Advisory build | 20.29.3-160100.3.1 | SUSE-SU-2026:24885-1 |
| SUSE / openSUSE | SLE-16 | python313-virtualenvnoarch | Advisory build | 20.29.3-160100.3.1 | SUSE-SU-2026:24940-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-virtualenvnoarch | Advisory build | 20.22.0-150400.9.12.1 | SUSE-SU-2026:4652-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-virtualenvnoarch | Advisory build | 20.29.3-160000.4.1 | OPENSUSE-SU-2026:22100-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | python313-virtualenvnoarch | Advisory build | 20.29.3-160100.3.1 | OPENSUSE-SU-2026:22379-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvaarch64 | Advisory build | 21.14.2-1.1 | OPENSUSE-SU-2026:11974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvppc64le | Advisory build | 21.14.2-1.1 | OPENSUSE-SU-2026:11974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvs390x | Advisory build | 21.14.2-1.1 | OPENSUSE-SU-2026:11974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-virtualenvx86_64 | Advisory build | 21.14.2-1.1 | OPENSUSE-SU-2026:11974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvaarch64 | Advisory build | 21.14.2-1.1 | OPENSUSE-SU-2026:11974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvppc64le | Advisory build | 21.14.2-1.1 | OPENSUSE-SU-2026:11974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvs390x | Advisory build | 21.14.2-1.1 | OPENSUSE-SU-2026:11974-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-virtualenvx86_64 | Advisory build | 21.14.2-1.1 | OPENSUSE-SU-2026:11974-1 |
| Amazon Linux | AL2023 | python-virtualenvsrc | Listed in advisory | Not stated | ALAS2023-2026-3295 |
| Amazon Linux | AL2023 | python3.13-virtualenvnoarch | Listed in advisory | Not stated | ALAS2023-2026-3296 |
| Amazon Linux | AL2023 | python3.13-virtualenvsrc | Listed in advisory | Not stated | ALAS2023-2026-3296 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pypa | virtualenv | < 21.7.11 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-93 CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')
References
4Provider assertions
2GitHub_M · cna
virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ea054e3c9b57f08a0660f647c85199038621c769fe5455bf49059b19b0550277
- Ingested
- 30 Sep 2026, 19:58:20 UTC
- Source record
- Official CVE record