CVE-2026-41338 OpenClaw < 2026.3.31 - Time-of-Check-Time-of-Use (TOCTOU) Vulnerability in Sandbox File Operations

Medium 4.3 Published Updated

Attackers can bypass sandbox file operation defenses via race conditions, potentially leading to unauthorized file manipulation or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-41338?

CVE-2026-41338 is a medium-severity vulnerability in Openclaw Openclaw, published on 23 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

OpenClaw before 2026.3.31 contains a time-of-check-time-of-use vulnerability in sandbox file operations that allows attackers to bypass fd-based defenses. Attackers can exploit check-then-act patterns in apply_patch, remove, and mkdir operations to manipulate files between validation and execution.

Weakness: CWE-367

Which versions are affected by CVE-2026-41338?

2 open source packages ship an affected version, including openclaw. It affects 1 product.

PackageAffectedFixed in
openclaw npmAll versions2026.3.31
openclaw npmAll versions2026.3.31

Products include Openclaw Openclaw.

How do I fix CVE-2026-41338?

Upgrade openclaw to 2026.3.31 or later.

Is CVE-2026-41338 being exploited?

There is no known exploitation of CVE-2026-41338 in the wild and no public exploit code.

All Openclaw Openclaw vulnerabilities

Sources

Also known as GHSA-9hhx-mwf2-vr7v, GHSA-rm5c-4rmf-vvhw, MINI-gr5g-gv68-328j, MINI-mc94-hjxc-hqwf.

Is CVE-2026-41338 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free