- Accueil
- Vulnérabilités
- CVE-2026-102938
CVE-2026-102938
virtualenv writes prompt values into pyvenv.cfg without sanitizing line boundaries, allowing configuration injection
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Pypa (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| virtualenv | Versions non précisées | — | CNA (éditeur ou attributeur) |
Virtualenv (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Virtualenv | avant 21.7.11 (exclu) |
— | NVD |
Correctif
Non renseigné par l’éditeur.
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Références
- https://github.com/pypa/virtualenv/commit/a30f995461043acb6cacbf3a890951563ccf7140Patch
- https://github.com/pypa/virtualenv/pull/3247Issue Tracking, Patch
- https://github.com/pypa/virtualenv/security/advisories/GHSA-9h9j-4vrj-gf7gVendor Advisory
- https://github.com/pypa/virtualenv/releases/tag/21.7.11Release Notes
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- NVD
- Faiblesse (CWE)
- CNA (éditeur ou attributeur)
- Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N(CVSS 3.1, NVD)- Faiblesse
- CWE-93 · Autre (CWE-93)