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.
Metrics
Affected Vendors & Products
References
| Link | Providers |
|---|---|
| https://github.com/openai/codex/pull/22843 |
|
History
Thu, 03 Sep 2026 17:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Execution of attacker‑controlled Git hooks in OpenAI Codex Desktop |
Thu, 03 Sep 2026 15:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
Wed, 02 Sep 2026 22:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Openai
Openai codex Desktop Openai codex Desktop (microsoft Store Package) |
|
| Vendors & Products |
Openai
Openai codex Desktop Openai codex Desktop (microsoft Store Package) |
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 |
|
Status: PUBLISHED
Assigner: OAI
Published:
Updated: 2026-09-03T14:32:10.000Z
Reserved: 2026-08-12T03:54:29.956Z
Link: CVE-2026-19590
Updated: 2026-09-03T14:29:23.399Z
Status : Undergoing Analysis
Published: 2026-09-01T18:17:40.140
Modified: 2026-09-03T15:17:19.780
Link: CVE-2026-19590
No data.
OpenCVE Enrichment
Updated: 2026-09-03T17:15:06Z