Description
OpenClaw versions prior to 2026.2.23 contain a path traversal vulnerability in the experimental apply_patch tool that allows attackers with sandbox access to modify files outside the workspace directory by exploiting inconsistent enforcement of workspace-only checks on mounted paths. Attackers can use apply_patch operations on writable mounts outside the workspace root to access and modify arbitrary files on the system.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OpenClaw | OpenClaw | < 2026.2.23 | 2026.2.23 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | openclaw | < 2026.2.23 | 2026.2.23 | GHSA-h9xm-j4qg-fvpg |
Advisories 1
- WID-SEC-2026-0490 OpenClaw: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 19, 2026
References
- GitHub Security Advisory (GHSA-h9xm-j4qg-fvpg) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: OpenClaw < 2026.2.23 - Sandbox Bypass in apply_patch Tool via Workspace-Only Check Bypass third-party-advisory