{
  "id": "ghsa-r5fq-947m-xm57",
  "title": "Path traversal in apply_patch can write/delete outside workspace",
  "product": "OpenClaw",
  "ai_system": "Endor Labs AI SAST engine",
  "organization": "Endor Labs",
  "summary": "In non-sandbox-contained operation, apply_patch path resolution can accept absolute or traversal paths and write or delete files outside the configured workspace. The AI SAST engine identified the code path; the researcher separately demonstrated that fabricated conversation history can bypass LLM guardrails and induce the tool call. This requires the model to cooperate and is not a generic direct HTTP path traversal.",
  "ai_role": "Endor Labs’ case-specific article states that its AI SAST engine traced attacker-controlled patch text through path resolution to filesystem write/delete sinks; researcher Peyton Kennedy then validated the exploit and reports a separate LLM guardrail-bypass path. The LLM cooperation is a condition of the demonstrated attack, not the AI SAST discovery method. The article was updated after initial publication, so the exact first public date of its current attribution text is not established.",
  "disclosure_date": "2026-02-19",
  "ai_attribution_date": null,
  "classification": "disclosure",
  "classification_note": "The upstream security advisory documents the public disclosure and fix. The sources do not establish whether defenders knew of the issue or whether it was exploited before disclosure.",
  "cves": [],
  "source_url": "https://github.com/openclaw/openclaw/security/advisories/GHSA-r5fq-947m-xm57",
  "ai_source_url": "https://www.endorlabs.com/learn/ai-sast-finding-path-traversal-in-openclaw-via-llm-guardrail-bypass",
  "advisory_url": "https://github.com/openclaw/openclaw/security/advisories/GHSA-r5fq-947m-xm57",
  "remediation": "fix documented",
  "remediation_note": "OpenClaw 2026.2.14 and later are listed as patched. Safe default workspaceOnly=true confines paths; maintainers link PR #16405.",
  "checked_date": "2026-11-16",
  "impacts": [
    {
      "cves": [],
      "consequences": [
        "data modification"
      ],
      "conditions": "Non-sandboxed path resolution / absent sandboxRoot or explicit workspaceOnly:false; apply_patch must be enabled and an attacker must be able to trigger LLM-mediated tool execution.",
      "exploitation": "The sources report validation or describe attack conditions but do not report observed exploitation.",
      "source_url": "https://github.com/openclaw/openclaw/security/advisories/GHSA-r5fq-947m-xm57",
      "checked_date": "2026-11-16"
    }
  ]
}
