{"api_version":"1","generated_at":"2026-09-09T07:49:12+00:00","cve":"CVE-2026-19591","urls":{"html":"https://cve.report/CVE-2026-19591","api":"https://cve.report/api/cve/CVE-2026-19591.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-19591","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-19591"},"summary":{"title":"CVE-2026-19591","description":"OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe because their command-safety parser interpreted PowerShell's stop-parsing token (--%) differently than PowerShell itself. If a user opens an attacker-prepared repository and Codex follows its instructions, Codex can run a file-writing Git command without requesting user approval. On macOS and Linux, exploitation additionally requires separately installed PowerShell Core (pwsh) to be invoked. If filesystem protections permit the write, the command can modify Codex's configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user's privileges, allowing it to read, change, or delete files accessible to that account. The approval bypass does not disable filesystem sandboxing; the default filesystem sandbox on macOS and Linux can prevent writes outside permitted locations.","state":"PUBLISHED","assigner":"OAI","published_at":"2026-09-01 18:17:40","updated_at":"2026-09-02 19:17:16"},"problem_types":["CWE-150","CWE-150 CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences"],"metrics":[{"version":"3.1","source":"ADP","type":"DECLARED","score":"8.8","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}},{"version":"3.1","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","score":"8.8","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}}],"references":[{"url":"https://github.com/openai/codex/pull/22643","name":"https://github.com/openai/codex/pull/22643","refsource":"8f4f43ab-ba69-4d92-aa1d-d772184d6fb7","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-19591","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-19591","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"OpenAI","product":"Codex CLI","version":"affected 0.72.0 0.130.0 semver","platforms":["Windows","macOS","Linux"]},{"source":"CNA","vendor":"OpenAI","product":"Codex CLI","version":"unaffected 0.131.0","platforms":["Windows","macOS","Linux"]},{"source":"CNA","vendor":"OpenAI","product":"Codex Desktop","version":"affected 260202.0859 26.513.31313 custom","platforms":["macOS"]},{"source":"CNA","vendor":"OpenAI","product":"Codex Desktop","version":"unaffected 26.519.22136","platforms":["macOS"]},{"source":"CNA","vendor":"OpenAI","product":"Codex Desktop","version":"affected 26.304.38 26.513.40821 custom","platforms":["Windows"]},{"source":"CNA","vendor":"OpenAI","product":"Codex Desktop","version":"unaffected 26.519.21041","platforms":["Windows"]},{"source":"CNA","vendor":"OpenAI","product":"Codex Desktop (Microsoft Store package)","version":"affected 26.304.38.0 26.513.4821.0 custom","platforms":["Windows"]},{"source":"CNA","vendor":"OpenAI","product":"Codex Desktop (Microsoft Store package)","version":"unaffected 26.519.2081.0","platforms":["Windows"]}],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"Upgrade Codex CLI to version 0.131.0 or later, 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.","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","value":"Until updated, do not open or follow instructions from untrusted repositories. On macOS and Linux, keep filesystem sandboxing enabled.","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"Emanuele Barbeno, Cyrill Bannwart, Yves Bieri, Lukasz D., and Urs Mueller of Compass Security (@compasssecurity).","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"19591","cve":"CVE-2026-19591","epss":"0.003050000","percentile":"0.228950000","score_date":"2026-09-06","updated_at":"2026-09-07 00:06:19"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}},{"other":{"content":{"id":"CVE-2026-19591","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","timestamp":"2026-09-02T18:34:17.952844Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-09-02T18:34:42.260Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"platforms":["Windows","macOS","Linux"],"product":"Codex CLI","vendor":"OpenAI","versions":[{"lessThanOrEqual":"0.130.0","status":"affected","version":"0.72.0","versionType":"semver"},{"status":"unaffected","version":"0.131.0"}]},{"platforms":["macOS"],"product":"Codex Desktop","vendor":"OpenAI","versions":[{"lessThanOrEqual":"26.513.31313","status":"affected","version":"260202.0859","versionType":"custom"},{"status":"unaffected","version":"26.519.22136"}]},{"platforms":["Windows"],"product":"Codex Desktop","vendor":"OpenAI","versions":[{"lessThanOrEqual":"26.513.40821","status":"affected","version":"26.304.38","versionType":"custom"},{"status":"unaffected","version":"26.519.21041"}]},{"platforms":["Windows"],"product":"Codex Desktop (Microsoft Store package)","vendor":"OpenAI","versions":[{"lessThanOrEqual":"26.513.4821.0","status":"affected","version":"26.304.38.0","versionType":"custom"},{"status":"unaffected","version":"26.519.2081.0"}]}],"configurations":[{"lang":"en","value":"Codex CLI for Windows, macOS, or Linux, or Codex Desktop for Windows or macOS, with Git and PowerShell. Windows normally includes PowerShell; macOS and Linux require separately installed PowerShell Core (pwsh) to be invoked. Exploitation requires an attacker-prepared repository whose instructions Codex follows. Misclassification bypasses command approval but does not itself disable filesystem sandboxing; code execution also requires a successful configuration write and later configuration load."}],"credits":[{"lang":"en","value":"Emanuele Barbeno, Cyrill Bannwart, Yves Bieri, Lukasz D., and Urs Mueller of Compass Security (@compasssecurity)."}],"descriptions":[{"lang":"en","value":"OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe because their command-safety parser interpreted PowerShell's stop-parsing token (--%) differently than PowerShell itself. If a user opens an attacker-prepared repository and Codex follows its instructions, Codex can run a file-writing Git command without requesting user approval. On macOS and Linux, exploitation additionally requires separately installed PowerShell Core (pwsh) to be invoked. If filesystem protections permit the write, the command can modify Codex's configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user's privileges, allowing it to read, change, or delete files accessible to that account. The approval bypass does not disable filesystem sandboxing; the default filesystem sandbox on macOS and Linux can prevent writes outside permitted locations."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-150","description":"CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-09-01T17:06:45.647Z","orgId":"8f4f43ab-ba69-4d92-aa1d-d772184d6fb7","shortName":"OAI"},"references":[{"url":"https://github.com/openai/codex/pull/22643"}],"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, 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 or follow instructions from untrusted repositories. On macOS and Linux, keep filesystem sandboxing enabled."}],"x_generator":{"engine":"cvelib 1.8.0"}}},"cveMetadata":{"assignerOrgId":"8f4f43ab-ba69-4d92-aa1d-d772184d6fb7","assignerShortName":"OAI","cveId":"CVE-2026-19591","datePublished":"2026-09-01T17:06:45.647Z","dateReserved":"2026-08-12T03:54:33.704Z","dateUpdated":"2026-09-02T18:34:42.260Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-01 18:17:40","lastModifiedDate":"2026-09-02 19:17:16","problem_types":["CWE-150","CWE-150 CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences"],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-09-02T18:34:17.952844Z","id":"CVE-2026-19591","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"19591","Ordinal":"1","Title":"CVE-2026-19591","CVE":"CVE-2026-19591","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"19591","Ordinal":"1","NoteData":"OpenAI Codex CLI for Windows, macOS, and Linux and Codex Desktop for Windows and macOS misclassified certain PowerShell commands as safe because their command-safety parser interpreted PowerShell's stop-parsing token (--%) differently than PowerShell itself. If a user opens an attacker-prepared repository and Codex follows its instructions, Codex can run a file-writing Git command without requesting user approval. On macOS and Linux, exploitation additionally requires separately installed PowerShell Core (pwsh) to be invoked. If filesystem protections permit the write, the command can modify Codex's configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user's privileges, allowing it to read, change, or delete files accessible to that account. The approval bypass does not disable filesystem sandboxing; the default filesystem sandbox on macOS and Linux can prevent writes outside permitted locations.","Type":"Description","Title":"CVE-2026-19591"}]}}}