- Accueil
- Vulnérabilités
- CVE-2026-115586
CVE-2026-115586
virtualenv: Bash activator leaves the --prompt value unescaped in PS1 when promptvars is off, so prompt expansion later executes it (regression in 21.14.9)
Résumé
virtualenv is a tool for creating isolated virtual python environments. From 21.14.9 until 21.14.13, the bash bin/activate script can copy an attacker-controlled --prompt value into PS1 without escaping dollar signs or backticks when both promptvars and POSIX mode are disabled during activation. Re-enabling promptvars, running set -o posix, or starting an interactive child bash that inherits the exported PS1 can then expand command substitution in the stored VIRTUAL_ENV_PROMPT value and execute commands as the user who activates the environment. This issue is fixed in version 21.14.13.
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) |
Pypi (2 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| virtualenv | de 21.14.9 (inclus) à 21.14.13 (exclu) |
21.14.13 |
GitHub Advisory |
| virtualenv | de 21.14.9 (inclus) à 21.14.13 (exclu) |
21.14.13 |
OSV |
Virtualenv (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Virtualenv | de 21.14.9 (inclus) à 21.14.13 (exclu) |
— | NVD |
Correctif
Mise à jour — PyPI/virtualenv 21.14.13source officielle
Source : GitHub Advisory
Mise à jour — PyPI/virtualenv 21.14.13source officielle
Source : OSV
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-cx6f-vjhg-g3cc — virtualenv: Bash activator leaves the --prompt value unescaped in PS1 when promptvars is off, so prompt expansion later executes it (regression in 21.14.9) 23 oct. 2026
- PYSEC-2026-4402 — PYSEC-2026-4402 23 oct. 2026
Références
- https://github.com/pypa/virtualenv/security/advisories/GHSA-cx6f-vjhg-g3ccEVIDENCE
- https://github.com/pypa/virtualenv/pull/3466FIX
- https://github.com/pypa/virtualenv/commit/3598e201f6f044e389136b2347a8a919ac03c5f4FIX
- https://github.com/pypa/virtualenv/releases/tag/21.14.13ADVISORY
- https://github.com/pypa/virtualenvPACKAGE
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- NVD
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H(CVSS 3.1, NVD)- Faiblesse
- CWE-78 · Injection de commandes / code