{
  "schema_version": "1.6.0",
  "id": "ACVE-2026-0442",
  "aliases": [],
  "published": "2026-09-15T00:00:00Z",
  "modified": "2026-09-25T00:00:00Z",
  "summary": "Codex CLI below 0.149.0, using its apply_patch tool in a sandbox, could write outside the intended workspace without a prompt.",
  "details": "## What\n\nAccomplish reported Overpatch in Codex CLI: the patch tool's permission grant could reach the parent of a patched path, allowing a patch to write elsewhere on the disk even when the agent was sandboxed.\n\n## Detection\n\nAccomplish reported a proof of concept and says Codex CLI 0.149.0 closes Overpatch.\n\n## Fix\n\nUpgrade Codex CLI to 0.149.0 or later.",
  "affected": [
    {
      "package": {
        "ecosystem": "AgentHarness",
        "name": "codex-cli"
      },
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.149.0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "REPORT",
      "url": "https://www.accomplish.ai/blog/escaping-the-openai-codex-sandbox-twice/"
    }
  ],
  "database_specific": {
    "severity": "HIGH",
    "acve": {
      "specVersion": 1,
      "status": "candidate",
      "kind": "code",
      "vulnClasses": [
        "path-traversal",
        "sandbox-escape",
        "unsafe-permission-mode"
      ],
      "cwe": [
        "CWE-22",
        "CWE-693"
      ],
      "taxonomy": {
        "owasp_asi": [
          "ASI05",
          "ASI02"
        ],
        "atlas": [
          "AML.T0105"
        ]
      },
      "cveBoundary": "pending-cve",
      "noCveReason": "No CVE was assigned in the public disclosure.",
      "exploitation": {
        "status": "demonstrated",
        "checkedAt": "2026-09-24T00:00:00Z",
        "sources": [
          {
            "url": "https://www.accomplish.ai/blog/escaping-the-openai-codex-sandbox-twice/",
            "type": "research"
          }
        ],
        "kev": {
          "listed": false
        }
      },
      "fix": {
        "summary": "Upgrade Codex CLI to 0.149.0 or later.",
        "actions": [
          {
            "type": "upgrade",
            "target": "harness:codex-cli",
            "to": "0.149.0",
            "why": "The report identifies this as the Overpatch fix.",
            "owner": "operator"
          }
        ]
      },
      "exposure": {
        "harness": {
          "value": "Codex CLI below 0.149.0",
          "any": false,
          "status": "detected",
          "source": "https://www.accomplish.ai/blog/escaping-the-openai-codex-sandbox-twice/"
        },
        "model": {
          "value": "any",
          "any": true,
          "status": "unconfirmed"
        },
        "goal": {
          "value": "Any task that uses the apply_patch tool",
          "stated": false,
          "status": "unconfirmed"
        },
        "tools": {
          "value": "Codex CLI apply_patch and its workspace sandbox",
          "status": "confirmed",
          "source": "https://www.accomplish.ai/blog/escaping-the-openai-codex-sandbox-twice/"
        },
        "approval": {
          "value": "The patch could widen the write grant without an approval prompt",
          "mode": "sandbox-escape",
          "status": "detected",
          "source": "https://www.accomplish.ai/blog/escaping-the-openai-codex-sandbox-twice/"
        },
        "inputControl": "repo-author",
        "agentAction": "The patch tool writes outside the intended workspace.",
        "harm": "file-write",
        "divergence": "none",
        "reach": {
          "value": "Files outside the intended workspace",
          "kinds": [
            "home-directory",
            "project-files"
          ],
          "status": "detected",
          "source": "https://www.accomplish.ai/blog/escaping-the-openai-codex-sandbox-twice/"
        }
      },
      "reproducibility": {
        "status": "partial",
        "axesComplete": true,
        "componentsObtainable": null,
        "triggerPublished": false,
        "observableStated": true,
        "demonstrated": "researcher-demonstrated",
        "missing": [
          "vulnerable components are not confirmed obtainable",
          "trigger not published"
        ]
      }
    }
  }
}
