CVE-2026-19593: (Pwn2Own) OpenAI Codex External Control of System or Configuration Setting Remote Code Execution Vulnerability

Published Sep 1, 2026
·
Updated

OpenAI Codex Desktop for Windows and macOS automatically inspected Git metadata and working-tree status when a user opened a workspace. If the workspace contains a repository with preserved attacker-controlled .git/config, the attr.tree setting and a configured clean or process filter can cause Git to run an attacker-controlled program. The program runs outside Codex's command sandbox with the signed-in user's privileges, without a workspace-trust prompt, command approval, or interaction with a model. The attacker can read, modify, or delete files and access credentials available to that user. Exploitation requires Git to be available on PATH and the user to open the attacker-prepared repository with its local Git configuration intact. An ordinary Git clone does not copy the source repository's .git/config and is not sufficient by itself.

Other sources

This vulnerability allows remote attackers to execute arbitrary code on affected installations of OpenAI Codex. User interaction is required to exploit this vulnerability in that the target must open a malicious folder. The specific flaw exists within the handling of configuration files. The issue results from the lack of proper sanitization of configuration settings. An attacker can leverage this vulnerability to execute code in the context of the current user.

— ZDI

Affected Software

2 affected components
OpenAI Codex Desktop
OpenAI Codex

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OpenAI Codex Desktop for macOS to a version that resolves this vulnerability.

    Fixed in 26.519.22136
  2. Upgrade

    Upgrade OpenAI Codex Desktop for Windows to a version that resolves this vulnerability.

    Fixed in 26.519.21041

Event History

Sep 1, 2026
CVE Published
via MITRE·05:10 PM
Data Sourced
via MITRE·05:10 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness
Sep 10, 2026
Advisory Published
via ZDI·12:00 AM
Data Sourced
via ZDI·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Users of Codex Desktop on Windows or macOS are exposed if Git is available on PATH and they open an attacker-prepared workspace that includes a repository with its attacker-controlled local .git/config preserved.

2

Would cloning a malicious repository normally trigger this?

No. A normal Git clone does not copy the source repository's local .git/config, so cloning alone is not sufficient for exploitation.

3

What must an attacker provide for exploitation to occur?

The attacker must cause the user to open a prepared repository whose local Git configuration remains intact and configures attr.tree together with a clean or process filter that runs an attacker-controlled program.

4

Does exploitation require approving a command or trusting the workspace?

No. The program can run during Codex's automatic Git metadata and working-tree inspection without a workspace-trust prompt, command approval, model interaction, or execution inside Codex's command sandbox.

5

What is the impact if exploitation succeeds?

The attacker-controlled program runs with the signed-in user's privileges and can read, modify, or delete files and access credentials available to that user.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203