CVE-2026-19591 (GCVE-0-2026-19591)

Vulnerability from cvelistv5 – Published: 2026-09-01 17:06 – Updated: 2026-09-01 17:06
VLAI
Summary
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.
Severity
No CVSS data available.
CWE
  • CWE-150 - Improper Neutralization of Escape, Meta, or Control Sequences
Assigner
References
Impacted products
Vendor Product Version CPE status
OpenAI Codex CLI Affected: 0.72.0 , ≤ 0.130.0 (semver)
Unaffected: 0.131.0
guessed Create a notification for this product.
OpenAI Codex Desktop Affected: 260202.0859 , ≤ 26.513.31313 (custom)
Unaffected: 26.519.22136
guessed Create a notification for this product.
OpenAI Codex Desktop Affected: 26.304.38 , ≤ 26.513.40821 (custom)
Unaffected: 26.519.21041
guessed Create a notification for this product.
OpenAI Codex Desktop (Microsoft Store package) Affected: 26.304.38.0 , ≤ 26.513.4821.0 (custom)
Unaffected: 26.519.2081.0
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "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\u0027s 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\u0027s configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user\u0027s 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-01T17:06:45.647Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-19591",
      "date": "2026-09-02",
      "epss": "0.00164",
      "percentile": "0.05898"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-19591\",\"sourceIdentifier\":\"8f4f43ab-ba69-4d92-aa1d-d772184d6fb7\",\"published\":\"2026-09-01T18:17:40.260\",\"lastModified\":\"2026-09-01T21:03:04.987\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"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\u0027s 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\u0027s configuration. If Codex later loads the modified configuration, it can launch an attacker-controlled MCP server and execute code with the user\u0027s 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.\"}],\"affected\":[{\"source\":\"8f4f43ab-ba69-4d92-aa1d-d772184d6fb7\",\"affectedData\":[{\"vendor\":\"OpenAI\",\"product\":\"Codex CLI\",\"platforms\":[\"Windows\",\"macOS\",\"Linux\"],\"versions\":[{\"version\":\"0.72.0\",\"lessThanOrEqual\":\"0.130.0\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"0.131.0\",\"status\":\"unaffected\"}]},{\"vendor\":\"OpenAI\",\"product\":\"Codex Desktop\",\"platforms\":[\"macOS\"],\"versions\":[{\"version\":\"260202.0859\",\"lessThanOrEqual\":\"26.513.31313\",\"versionType\":\"custom\",\"status\":\"affected\"},{\"version\":\"26.519.22136\",\"status\":\"unaffected\"}]},{\"vendor\":\"OpenAI\",\"product\":\"Codex Desktop\",\"platforms\":[\"Windows\"],\"versions\":[{\"version\":\"26.304.38\",\"lessThanOrEqual\":\"26.513.40821\",\"versionType\":\"custom\",\"status\":\"affected\"},{\"version\":\"26.519.21041\",\"status\":\"unaffected\"}]},{\"vendor\":\"OpenAI\",\"product\":\"Codex Desktop (Microsoft Store package)\",\"platforms\":[\"Windows\"],\"versions\":[{\"version\":\"26.304.38.0\",\"lessThanOrEqual\":\"26.513.4821.0\",\"versionType\":\"custom\",\"status\":\"affected\"},{\"version\":\"26.519.2081.0\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"weaknesses\":[{\"source\":\"8f4f43ab-ba69-4d92-aa1d-d772184d6fb7\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-150\"}]}],\"references\":[{\"url\":\"https://github.com/openai/codex/pull/22643\",\"source\":\"8f4f43ab-ba69-4d92-aa1d-d772184d6fb7\"}]}}"
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…