Openclaw cli: OpenClaw has a path traversal in apply_patch could write/delete files outside the workspace (CVE-2026-32060)
Description
OpenClaw CLI versions up to 2026.2.13 contain a path traversal vulnerability in the apply_patch feature that can write or delete files outside the intended workspace directory if filesystem sandbox containment is not enabled. This occurs because the path resolution does not enforce workspace containment when apply_patch is enabled and the agent runs without sandboxing. The vulnerability is fixed in version 2026.2.14. The impact depends on deployment specifics and who can trigger the tool execution. Mitigations include disabling apply_patch if not needed, keeping workspaceOnly containment enabled, and restricting tool execution permissions.
CVSS v3.1
Score 8.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenClaw CLI versions >=2026.1.29 and <2026.2.14 have a path traversal vulnerability (CVE-2026-32060) in the apply_patch functionality. When apply_patch is enabled and the agent runs without filesystem sandbox containment (tools.exec.applyPatch.workspaceOnly set to false), crafted paths such as '../../...' or absolute paths can escape the workspace directory and cause file writes or deletions outside the intended workspace. This vulnerability is fixed in version 2026.2.14. The issue arises from non-sandboxed path resolution that does not enforce workspace containment. The vulnerability is relevant when less-trusted users can trigger tool execution or when operators expect workspace-only containment.
Potential Impact
This vulnerability allows an attacker with permission to trigger the apply_patch tool to write or delete files outside the configured workspace directory, potentially leading to arbitrary file modification or deletion on the host system. The severity is high (CVSS 8.8) with impacts on confidentiality, integrity, and availability. The practical impact depends on deployment and access controls around tool invocation.
Mitigation Recommendations
A fix is available in OpenClaw CLI version 2026.2.14 and later. Users should upgrade to this version to remediate the vulnerability. If upgrading is not immediately possible, mitigations include disabling the apply_patch feature (tools.exec.applyPatch.enabled = false), ensuring workspace containment is enabled (tools.exec.applyPatch.workspaceOnly = true), and restricting which users can trigger tool execution and which tools are allowlisted. These mitigations prevent path traversal outside the workspace.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-32060
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac245b912601ec6a3166bd2
Added to database: 10/04/2026, 12:25:29 UTC
Last enriched: 10/04/2026, 13:02:00 UTC
Last updated: 10/04/2026, 16:08:37 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.