---
title: "CVE-2026-102938"
canonical_url: "https://pkgseek.com/security/CVE-2026-102938"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# 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_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 th…

CVE-2026-102938 is rated MEDIUM (6.2), with 2 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM (6.2)
- **Affected builds**: 2
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | python3-virtualenv | 20.31.2+ds-1+deb13u1 | — |
| Debian | trixie | virtualenv | 20.31.2+ds-1+deb13u1 | — |
