Loading...
Skip to main content

CVE-2026-32060

HIGH

OpenClaw has a path traversal in apply_patch could write/delete files outside the workspace

Published February 19, 2026Updated March 13, 2026Source: osv

Summary

## Summary 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. ## Affected Packages / Versions - Package: `openclaw` (npm) - Affected: `<= 2026.2.13` - Fixed: `>= 2026.2.14` ## Details The 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. ## Impact 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. ## Workarounds - Keep `tools.exec.applyPatch.enabled` disabled if you do not need `apply_patch`. - Keep `tools.exec.applyPatch.workspaceOnly` at its secure default of `true`. - Restrict who can trigger tool execution (and which tools are allowlisted). ## Configuration Note `tools.exec.applyPatch.workspaceOnly: false` intentionally opts out of workspace containment and can re-enable outside-workspace writes/deletes. ## Fix - PR: https://github.com/openclaw/openclaw/pull/16405 - Merge commit: `5544646a09c0121fca7d7093812dc2de8437c7f1` ## Credits Thanks to @p80n-sec for reporting this issue.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update openclaw to 2026.2.14 or later
npm install openclaw@2026.2.14

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

PackageEcosystemAffectedFixed In
openclaw
npm
All versions2026.2.14

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-32060?
OpenClaw has a path traversal in apply_patch could write/delete files outside the workspace This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-32060?
CVE-2026-32060 affects openclaw. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-32060 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-r5fq-947m-xm57

Related CVEs

  • CVE-2026-41294
    CRITICAL

    OpenClaw has a CWD `.env` environment variable injection which bypasses host-env policy and allows config takeover

  • CVE-2026-22172
    CRITICAL

    OpenClaw: WebSocket shared-auth connections could self-declare elevated scopes

  • CVE-2026-28472
    CRITICAL

    OpenClaw's gateway connect could skip device identity checks when auth.token was present but not yet validated

  • CVE-2026-43571
    HIGH

    OpenClaw: Channel setup catalog lookups could include untrusted workspace plugin shadows

  • CVE-2026-32914
    HIGH

    OpenClaw: Command-authorized non-owners could reach owner-only `/config` and `/debug` surfaces

  • CVE-2026-28469
    HIGH

    OpenClaw Google Chat shared-path webhook target ambiguity allowed cross-account policy-context misrouting

  • CVE-2026-43531
    MEDIUM

    OpenClaw: Workspace .env could inject OpenClaw runtime-control variables

  • CVE-2026-22177
    MEDIUM

    OpenClaw's config env vars allowed startup env injection into service runtime

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies