{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-19592",
        "assignerOrgId": "8f4f43ab-ba69-4d92-aa1d-d772184d6fb7",
        "state": "PUBLISHED",
        "assignerShortName": "OAI",
        "dateReserved": "2026-08-12T03:54:37.942Z",
        "datePublished": "2026-09-01T17:14:49.978Z",
        "dateUpdated": "2026-09-01T17:14:49.978Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "8f4f43ab-ba69-4d92-aa1d-d772184d6fb7",
                "shortName": "OAI",
                "dateUpdated": "2026-09-01T17:14:49.978Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS automatically collected Git repository metadata without disabling the repository-local core.fsmonitor setting. If a user opens or uses an attacker-prepared repository whose preserved .git/config sets core.fsmonitor to an attacker-controlled filesystem-monitor helper, Git can execute that helper while Codex collects repository metadata. The helper runs outside Codex's command sandbox and without a user-approval prompt, allowing attacker-controlled code to run with the user's privileges. The code can 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 source repository's local .git/config; exploitation requires a repository delivered or copied with that configuration intact."
                }
            ],
            "affected": [
                {
                    "vendor": "OpenAI",
                    "product": "Codex CLI",
                    "platforms": [
                        "Windows",
                        "macOS",
                        "Linux"
                    ],
                    "versions": [
                        {
                            "version": "0.102.0",
                            "status": "affected",
                            "versionType": "semver",
                            "lessThanOrEqual": "0.130.0"
                        },
                        {
                            "version": "0.131.0",
                            "status": "unaffected"
                        }
                    ]
                },
                {
                    "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-15",
                            "description": "CWE-15: External Control of System or Configuration Setting",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/openai/codex/pull/22652"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "System Software and Security Lab, Fudan University"
                }
            ],
            "configurations": [
                {
                    "lang": "en",
                    "value": "Codex CLI on Windows, macOS, or Linux, or Codex Desktop on macOS or Windows. Requires Git and an attacker-prepared repository whose preserved .git/config sets core.fsmonitor to an attacker-controlled helper. Automatic Git metadata collection runs the helper outside Codex's command sandbox without approval. Ordinary Git clones do not preserve the required configuration."
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "Upgrade Codex CLI to version 0.131.0 or later; Codex Desktop for macOS to application version 26.519.22136 or later; and 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 or use repository archives or copied directories that preserve attacker-controlled .git/config."
                }
            ],
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        }
    }
}