CVE-2026-19590: OpenAI Codex Desktop vulnerability

Published Sep 1, 2026
·
Updated

OpenAI Codex Desktop for Windows and macOS could execute attacker-controlled Git hooks because automated Git operations trusted the repository's local core.hooksPath setting. If a user opens an attacker-prepared repository whose preserved .git/config points core.hooksPath to an attacker-controlled directory, Codex can run a malicious hook while processing the repository. The hook executes outside Codex's command sandbox, without user approval, and with the user's privileges, allowing it to read, change, or delete the user's files and access other resources available to the user's account. An ordinary Git clone does not preserve the attacker-controlled repository-local configuration required for exploitation.

Affected Software

1 affected component
OpenAI Codex Desktop

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 26.519.22136
  2. Upgrade

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

    Fixed in 26.519.21041Patch Microsoft Store package 26.519.2081.0

Event History

Sep 1, 2026
CVE Published
via MITRE·05:04 PM
Data Sourced
via MITRE·05:04 PM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Users of Codex Desktop on Windows or macOS are exposed when they open an attacker-prepared repository whose existing .git/config preserves a repository-local core.hooksPath pointing to an attacker-controlled directory. A repository obtained through an ordinary Git clone does not retain the required configuration.

2

What must an attacker provide for exploitation to occur?

The attacker needs to provide a repository with a preserved local Git configuration that sets core.hooksPath to an attacker-controlled directory, along with a malicious hook in that location. Codex must then perform an automated Git operation while processing that repository.

3

Does exploitation require user approval or execution inside Codex's command sandbox?

No. The malicious hook can run without user approval and executes outside Codex's command sandbox, with the privileges of the affected user's account.

4

What could a successful hook execution access or modify?

The hook can read, modify, or delete the user's files and access other resources available to that user's account.

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