FICHE CVE

CVE-2026-19591

Publiée le 2026-09-01 · Dernière modification le 2026-09-02

🇫🇷 EN BREF

Les utilisateurs d'OpenAI Codex CLI et de Codex Desktop sont affectés par une faille où le logiciel interprète mal les jetons d'arrêt d'analyse (stop-parsing tokens) de PowerShell, permettant à certaines commandes de contourner les validations de sécurité. Un attaquant peut exploiter cela en vous incitant à ouvrir un dépôt malveillant, ce qui pourrait lui permettre de modifier votre configuration Codex pour exécuter du code arbitraire avec vos privilèges d'utilisateur. Cette attaque ne nécessite aucune authentification, mais repose sur l'interaction de l'utilisateur pour ouvrir le dépôt compromis.

CVSS 3.18.8 ÉLEVÉE
Type de faiblesse
Publiée2026-09-01
Dernière modification2026-09-02

DÉTAIL DU VECTEUR CVSS

Vecteur d'attaqueRéseau
Complexité d'attaqueFaible
Privilèges requisAucun
Interaction utilisateurRequise
PortéeInchangée
Impact sur la confidentialitéÉlevé
Impact sur l'intégritéÉlevé
Impact sur la disponibilitéÉlevé

RÉFÉRENCES

Description officielle du NVD (en anglais)

OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe because their command-safety parser interpreted PowerShell's stop-parsing token (--%) differently than PowerShell itself. If a user opens an attacker-prepared repository and Codex follows its instructions, Codex can run a file-writing Git command without requesting user approval. On macOS and Linux, exploitation additionally requires separately installed PowerShell Core (pwsh) to be invoked. If filesystem protections permit the write, the command can modify Codex's configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user's privileges, allowing it to read, change, or delete files accessible to that account. The approval bypass does not disable filesystem sandboxing; the default filesystem sandbox on macOS and Linux can prevent writes outside permitted locations.