Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-102938
VULNERABILITY

CVE-2026-102938

Common Vulnerabilities and Exposures record

MEDIUM

Summary

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.

Risk

CVSS
5.8
Severity
MEDIUM
Vector
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/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

Timeline

Published
Sep 29, 2026 21:17
Modified
Nov 19, 2026 19:51
Last observed
Nov 19, 2026 16:00

CWE

CWE-93

Affected product identifiers

cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*

References