Skip to main content
CVE-2026-102938VulnerabilityPublished Updated

virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection

Affects virtualenvSource GCVE Database

0
Compare
Authoritative record:CVE-2026-102938· Medium 5.8

Not known to be exploited · CVSS 5.8 Medium : upgrade to 21.7.11 when convenient.

Data as of 27 Nov 2026, 07:43 UTC

CVSS 4.0 base score
5.8Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.05.8
Patch
Available – fixed in 21.7.11
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.

What to do

Upgrade virtualenv to 21.7.11.

Affected software

ProductAffectedFixed in
Bitnamivirtualenvpkg:bitnami/virtualenvOther threatsAffected
  • <21.7.11
Fixed in
  • 21.7.11
PyPIvirtualenvpkg:pypi/virtualenvOther threatsAffected
  • <21.7.11
Fixed in
  • 21.7.11

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade virtualenv to version 21.7.11 or later, where this issue is fixed. The fix sanitizes prompt values before writing them to pyvenv.cfg, preventing configuration injection. No other mitigation is required if the upgrade is applied.

Description

virtualenv versions prior to 21.7.11 improperly write prompt values into the pyvenv.cfg configuration file without sanitizing line boundaries. This allows an attacker who can influence prompt inputs from outside the operator's trust boundary to inject additional configuration lines, potentially causing the environment to use a malicious base interpreter or corrupted metadata. The issue is fixed in version 21.7.11.

References

Community reviews

Loading reviews…