{"id":"CVE-2026-32060","aliases":["GHSA-r5fq-947m-xm57"],"url":"https://o3.security/vulnerability/CVE-2026-32060","summary":"OpenClaw < 2026.2.14 - Path Traversal in apply_patch via Crafted Paths","details":"## Summary\n\nIn 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.\n\n## Affected Packages / Versions\n\n- Package: `openclaw` (npm)\n- Affected: `<= 2026.2.13`\n- Fixed: `>= 2026.2.14`\n\n## Details\n\nThe 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.\n\n## Impact\n\nPractical 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.\n\n## Workarounds\n\n- Keep `tools.exec.applyPatch.enabled` disabled if you do not need `apply_patch`.\n- Keep `tools.exec.applyPatch.workspaceOnly` at its secure default of `true`.\n- Restrict who can trigger tool execution (and which tools are allowlisted).\n\n## Configuration Note\n\n`tools.exec.applyPatch.workspaceOnly: false` intentionally opts out of workspace containment and can re-enable outside-workspace writes/deletes.\n\n## Fix\n\n- PR: https://github.com/openclaw/openclaw/pull/16405\n- Merge commit: `5544646a09c0121fca7d7093812dc2de8437c7f1`\n\n## Credits\n\nThanks to @p80n-sec for reporting this issue.","published":"2026-03-11T13:32:33.790Z","modified":"2026-08-12T03:51:46.599206374Z","cvss":null,"epss":{"score":0.00742,"percentile":0.51853,"asOf":"2026-08-19"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"openclaw","fixedVersion":"2026.2.14"}],"fix":{"url":"https://github.com/openclaw/openclaw/commit/5544646a09c0121fca7d7093812dc2de8437c7f1","label":"openclaw/openclaw@5544646"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32060.json"},{"type":"ADVISORY","url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-r5fq-947m-xm57"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32060"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openclaw-path-traversal-in-apply-patch-via-crafted-paths"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/commit/5544646a09c0121fca7d7093812dc2de8437c7f1"},{"type":"WEB","url":"https://github.com/openclaw/openclaw/pull/16405"},{"type":"PACKAGE","url":"https://github.com/openclaw/openclaw"},{"type":"WEB","url":"https://github.com/openclaw/openclaw/releases/tag/v2026.2.14"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:46.599206374Z"}}