
CVE catalog
CVE-2026-102938
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_val
- Severity
- High · CVSS 7
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.15% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-virtualenv | sid | 21.5.1+ds-1 | vulnerable |
| Debian | python-virtualenv | forky | 21.5.1+ds-1 | vulnerable |
| Debian | python-virtualenv | trixie | 20.31.2+ds-1+deb13u1 | vulnerable |
| Debian | python-virtualenv | bookworm | 20.17.1+ds-1 | vulnerable |
| PyPI | virtualenv | Not reported | 21.7.11 | fixed |
| PyPI | virtualenv | Not reported | 21.7.11 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-virtualenv | source | sid | (unfixed) | not yet assigned | Not reported | [1149650] |
| Debian | python-virtualenv | source | forky | (unfixed) | not yet assigned | Not reported | [1149650] |
| Debian | python-virtualenv | source | trixie | (unfixed) | not yet assigned | Not reported | [1149650] |
| Debian | python-virtualenv | source | bookworm | (unfixed) | not yet assigned | Not reported | [1149650] |
| PyPI | virtualenv | PyPI | Not reported | 21.7.11 | Not reported | PYSEC-2026-4012 | Not reported |
| PyPI | virtualenv | PyPI | Not reported | 21.7.11 | Not reported | GHSA-9H9J-4VRJ-GF7G | Not reported |
Notes
[trixie] python-virtualenv: Minor issue [bookworm] python-virtualenv: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-virtualenv]Affected
Source package: [python-virtualenv]
Details (2)
20.17.1+ds-1· all · bookwormAffected
nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12
20.17.1+ds-1· all · bookwormAffected
nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12
- [virtualenv]Affected
Source package: [python-virtualenv]
Details (2)
20.17.1+ds-1· all · bookwormAffected
nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12
20.17.1+ds-1· all · bookwormAffected
nvd · python-virtualenv · debian · bookworm; nvd · python-virtualenv · debian · 12
[Debian 13 (Trixie)]
- [python3-virtualenv]Affected
Source package: [python-virtualenv]
Details (2)
20.31.2+ds-1+deb13u1· all · trixieAffected
nvd · python-virtualenv · debian · 13
20.31.2+ds-1+deb13u1· all · trixieAffected
nvd · python-virtualenv · debian · 13
- [virtualenv]Affected
Source package: [python-virtualenv]
Details (2)
20.31.2+ds-1+deb13u1· all · trixieAffected
nvd · python-virtualenv · debian · 13
20.31.2+ds-1+deb13u1· all · trixieAffected
nvd · python-virtualenv · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11974-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-102938]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-102938]
- [https://security-tracker.debian.org/tracker/CVE-2026-102938]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102938.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]