CVE-2026-102938

Medium

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.

SeverityMedium
CVSS5.8
Exploit probability—
ProductVirtualenv
PublishedSep 29, 2026
First seenSep 29, 2026
Weakness typeCWE-93CWE-93

How to fix

Update
  • virtualenv21.7.11 or later

Affected products

ProductAffected versionsFixed in
virtualenvPyPIv < 21.7.1121.7.11
microsoft azl3_python-virtualenv_20.36.1-6No range specified—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.