{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-19590",
        "assignerOrgId": "8f4f43ab-ba69-4d92-aa1d-d772184d6fb7",
        "state": "PUBLISHED",
        "assignerShortName": "OAI",
        "dateReserved": "2026-08-12T03:54:29.956Z",
        "datePublished": "2026-09-01T17:04:43.060Z",
        "dateUpdated": "2026-09-01T17:04:43.060Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "8f4f43ab-ba69-4d92-aa1d-d772184d6fb7",
                "shortName": "OAI",
                "dateUpdated": "2026-09-01T17:04:43.060Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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": [
                {
                    "vendor": "OpenAI",
                    "product": "Codex Desktop",
                    "platforms": [
                        "macOS"
                    ],
                    "versions": [
                        {
                            "version": "260202.0859",
                            "status": "affected",
                            "versionType": "custom",
                            "lessThanOrEqual": "26.513.31313"
                        },
                        {
                            "version": "26.519.22136",
                            "status": "unaffected"
                        }
                    ]
                },
                {
                    "vendor": "OpenAI",
                    "product": "Codex Desktop",
                    "platforms": [
                        "Windows"
                    ],
                    "versions": [
                        {
                            "version": "26.304.38",
                            "status": "affected",
                            "versionType": "custom",
                            "lessThanOrEqual": "26.513.40821"
                        },
                        {
                            "version": "26.519.21041",
                            "status": "unaffected"
                        }
                    ]
                },
                {
                    "vendor": "OpenAI",
                    "product": "Codex Desktop (Microsoft Store package)",
                    "platforms": [
                        "Windows"
                    ],
                    "versions": [
                        {
                            "version": "26.304.38.0",
                            "status": "affected",
                            "versionType": "custom",
                            "lessThanOrEqual": "26.513.4821.0"
                        },
                        {
                            "version": "26.519.2081.0",
                            "status": "unaffected"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-427",
                            "description": "CWE-427: Uncontrolled Search Path Element",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/openai/codex/pull/22843"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Sina Kheirkhah (@SinSinology) of Summoning Team (@SummoningTeam)."
                }
            ],
            "configurations": [
                {
                    "lang": "en",
                    "value": "Codex Desktop for macOS or Windows with Git and an attacker-prepared repository whose preserved .git/config sets core.hooksPath to an attacker-controlled directory. Ordinary Git clones do not preserve this setting."
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "workarounds": [
                {
                    "lang": "en",
                    "value": "Until updated, do not open untrusted repository archives or copied repository directories that preserve attacker-supplied .git/config."
                }
            ],
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        }
    }
}