6.2

CVE-2026-102938: virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection

Analyzed
AliasesGHSA-9h9j-4vrj-gf7gBIT-virtualenv-2026-102938PYSEC-2026-4012
Published 29-09-2026Last modified 30-09-2026

Vulnerability summary

CVE-2026-102938 is a medium (CVSS 6.2) vulnerability in pypa virtualenv. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 4.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.2/10
010
Medium · v3.1 (NVD)
EPSS score
0.15%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 7

Timeline

  1. 29-09-2026
    PublishedVulnerability first disclosed.
  2. 30-09-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

9 scores · 7 sources · 2 versions

EPSS trend

Probability

0.15%

Chance of exploitation in the next 30 days

Percentile

5%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.15% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard3 products
  • mlflow-iamguarded-compat< 3.16.1-r1
  • py3-cassandra-medusa< 0.30.1-r3
  • request-1276< 0.30.1-r3
Wolfi2 products
  • mlflow-iamguarded-compat< 3.16.1-r1
  • py3-cassandra-medusa< 0.30.1-r3
Debian1 product
  • python-virtualenvAll versions (No fix recorded) | < 21.15.6+ds-1
Pypa1 product
PyPI1 product
  • virtualenv< 21.7.11
Ubuntu1 product
  • python-virtualenvAll versions (No fix recorded)
Virtualenv1 product

7 vendors · 10 products

References

12 links
Show all 12 references