
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-41296 is a Time-of-Check Time-of-Use (TOCTOU) race condition vulnerability in OpenClaw's remote filesystem bridge readFile function that enables sandbox escape. Affecting all OpenClaw (npm) versions up to and including 2026.3.28, the flaw was disclosed on April 20–21, 2026, with a fix released in version 2026.3.31. It carries a CVSS v3.1 base score of 8.2 (High) and a CVSS v4.0 base score of 8.8 (High) (GitHub Advisory, Feedly).
The vulnerability is classified as CWE-367 (Time-of-check Time-of-use Race Condition). In the vulnerable code path, the readFile function in remote-fs-bridge.ts performed path validation (via resolveCanonicalPath and assertNoHardlinkedFile) as a separate step from the actual file read operation (using cat -- "$1"), creating a race window between the two operations. An attacker with low-privileged network access could exploit this timing gap — for example, by swapping a validated path with a symlink or hardlink pointing to an arbitrary file outside the sandbox — to read files beyond the intended sandbox boundary. The fix (commit 121870a) replaces the two-step approach with an atomic read operation using a pinned parent directory file descriptor (open_dir + walk_dir + read_file via Python's os.open with dir_fd), and additionally rejects non-regular files and hardlinked files at read time (GitHub Commit, GitHub Advisory).
Successful exploitation allows a low-privileged network attacker to escape the OpenClaw sandbox and read arbitrary files on the host system, resulting in high confidentiality and integrity impact with a changed scope (resources beyond the vulnerable component are affected). Sensitive files such as credentials, configuration files, or private keys accessible to the OpenClaw process could be exfiltrated. Availability is not directly impacted, but the confidentiality and integrity exposure could facilitate further lateral movement or privilege escalation (GitHub Advisory, Feedly).
No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at this time. The vulnerability requires low privileges and no user interaction, but exploitation is rated as high complexity due to the need to win a race condition. The EPSS score is approximately 0.026% (very low probability of exploitation in the near term). The CVE is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Feedly, GitHub Advisory).
workspace/legit.txt).readFile request targeting the benign path, causing the server to perform path validation.cat -- "$1") executes, replace the validated path with a symlink or hardlink pointing to a sensitive file outside the sandbox (e.g., /etc/passwd, SSH private keys, or application secrets). This requires precise timing, typically achieved via a tight loop or concurrent threads.readFile API requests from a single low-privileged account targeting the same or similar file paths in quick succession, potentially indicating race condition attempts./etc/, ~/.ssh/).Upgrade OpenClaw (npm) to version 2026.3.31 or later, which contains the fix commit 121870a that atomically pins the parent directory file descriptor before reading, eliminating the TOCTOU window. Until patching is complete, consider restricting network-level access to the OpenClaw service to trusted users only, and audit file access logs for suspicious unauthorized read patterns. No official configuration-based workaround has been published as a substitute for upgrading (GitHub Advisory, GitHub Commit).
The vulnerability was reported by researcher @AntAISecurityLab and credited in both the GitHub security advisory and the fix commit changelog. The advisory was published by maintainer steipete and the fix was authored by vincentkoc. No significant broader media coverage or notable social media discussion has been identified beyond standard CVE aggregator coverage (GitHub Advisory, GitHub Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."