Description
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.
Published: 2026-09-01
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

OpenAI Codex Desktop for Windows and macOS allows execution of attacker‑controlled Git hooks because the application trusts the repository’s local core.hooksPath setting. A malicious hook placed in the designated directory runs outside Codex’s command sandbox with the user’s privileges, enabling the attacker to read, modify, or delete user files and access other resources. The flaw requires a repository that preserves a .git/config file pointing core.hooksPath to an attacker‑controlled directory; simple Git clones do not provide this configuration and therefore are not exploitable directly.

Affected Systems

The vulnerability affects all versions of OpenAI Codex Desktop prior to application version 26.519.22136 on macOS and prior to 26.519.21041 on Windows, including the Microsoft Store package version 26.519.2081.0. Any installation of Codex Desktop falling within these version ranges is susceptible.

Risk and Exploitability

The flaw represents a high‑severity risk due to the potential for arbitrary code execution with full user privileges. No EPSS score is available, and the vulnerability is currently not listed in the CISA KEV catalog. It can be exploited by delivering a crafted repository archive or by copying a repository directory that retains the attacker‑supplied configuration. Because the execution occurs outside the sandbox, the impact is broad and can compromise system integrity and confidentiality.

Generated by OpenCVE AI on September 2, 2026 at 00:09 UTC.

Remediation

Vendor Solution

Upgrade Codex Desktop for macOS to application version 26.519.22136 or later, or Codex Desktop for Windows to application version 26.519.21041 (Microsoft Store package 26.519.2081.0) or later.


Vendor Workaround

Until updated, do not open untrusted repository archives or copied repository directories that preserve attacker-supplied .git/config.


OpenCVE Recommended Actions

  • Upgrade Codex Desktop to macOS application version 26.519.22136 or later, or to Windows application version 26.519.21041 (Microsoft Store package 26.519.2081.0) or later.
  • Avoid opening untrusted repository archives or copied repository directories that preserve an attacker‑controlled .git/config setting until the patch is installed.
  • If a patch is not yet available, remove or modify the .git/config file to delete or reset the core.hooksPath entry before opening the repository in Codex.

Generated by OpenCVE AI on September 2, 2026 at 00:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 02 Sep 2026 00:30:00 +0000

Type Values Removed Values Added
Title Execution of attacker‑controlled Git hooks in OpenAI Codex Desktop

Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Description 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.
Weaknesses CWE-427
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: OAI

Published:

Updated: 2026-09-01T17:04:43.060Z

Reserved: 2026-08-12T03:54:29.956Z

Link: CVE-2026-19590

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-01T18:17:40.140

Modified: 2026-09-01T21:03:04.987

Link: CVE-2026-19590

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T00:15:05Z

Weaknesses
  • CWE-427

    Uncontrolled Search Path Element