In affected versions, when apply_patch was enabled and the agent ran without filesystem sandbox containment, crafted paths could cause file writes/deletes outside the configured workspace directory.
openclaw (npm)<= 2026.2.13>= 2026.2.14The non-sandbox path resolution in apply_patch did not enforce workspace containment. Inputs like ../../... or absolute paths could escape the working directory in non-sandboxed mode.
Practical impact depends on deployment and who can trigger tool execution. This is most relevant when tool invocation is exposed to less-trusted callers or when operators expected workspace-only containment.
tools.exec.applyPatch.enabled disabled if you do not need apply_patch.tools.exec.applyPatch.workspaceOnly at its secure default of true.tools.exec.applyPatch.workspaceOnly: false intentionally opts out of workspace containment and can re-enable outside-workspace writes/deletes.
5544646a09c0121fca7d7093812dc2de8437c7f1Thanks to @p80n-sec for reporting this issue.
{
"cwe_ids": [
"CWE-22"
],
"github_reviewed": true,
"github_reviewed_at": "2026-02-19T20:45:58Z",
"nvd_published_at": "2026-03-11T14:16:27Z",
"severity": "HIGH"
}