CVE-2026-41366
OpenClaw (formerly Moltbot or Clawdbot) vulnerability analysis and mitigation

Overview

CVE-2026-41366 is a local roots self-whitelisting vulnerability in OpenClaw's appendLocalMediaParentRoots function that allows model-initiated arbitrary host file read and credential exfiltration. It affects OpenClaw (npm) versions up to and including 2026.3.28, with the fix introduced in version 2026.3.31. The vulnerability was published on April 28, 2026, and was reported by researcher tdjackey. It carries a CVSS v3.1 base score of 5.5 (Medium) and a CVSS v4.0 base score of 6.0 (Medium) (GitHub Advisory, OpenClaw Advisory).

Technical details

The root cause is classified as CWE-732 (Incorrect Permission Assignment for Critical Resource), with an estimated overlap with CWE-22 (Path Traversal). In vulnerable versions, the appendLocalMediaParentRoots function in src/media/local-roots.ts dynamically expanded the list of allowed local file system roots by appending parent directories of media sources provided at runtime — including those supplied via model-initiated requests. This meant that if a model passed a media source path such as /Users/peter/Pictures/photo.png, the function would add /Users/peter/Pictures to the allowed roots, effectively widening file access beyond the intended workspace scope. The fix (commit 1ca4261) removes this dynamic expansion entirely, making appendLocalMediaParentRoots a no-op that ignores mediaSources and returns only configuration-derived roots; the function is now marked @deprecated for plugin-SDK compatibility (OpenClaw Commit, OpenClaw Advisory).

Impact

Successful exploitation allows a low-privileged attacker to read arbitrary files from the host file system outside the intended media directory scope, including sensitive credentials and configuration files. The vulnerability has a high confidentiality impact with no integrity or availability impact. Because the file access is initiated through model requests, the attack can be difficult to distinguish from legitimate application behavior, increasing the risk of undetected credential exfiltration (GitHub Advisory, OpenClaw Advisory).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.021–0.029%, placing it in a low percentile for near-term exploitation likelihood. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires low-level privileges and specific attack conditions (Attack Requirements: Present in CVSS v4.0), limiting its practical exploitability (GitHub Advisory).

Mitigation and workarounds

Upgrade OpenClaw (npm) to version 2026.3.31 or later, which contains the fix in commit 1ca4261d7e055d0be141ed79ebb1365d0fbc7364. No configuration-based workaround is documented; upgrading is the only recommended remediation. Additionally, administrators should review access logs for suspicious file read activity from low-privileged accounts, audit access to sensitive configuration files and credentials, and apply the principle of least privilege to application permissions (OpenClaw Advisory, OpenClaw Commit).

Community reactions

The OpenClaw maintainer (steipete) published the security advisory and noted that the impact is narrower than an initial critical framing, assessing it as medium severity because the self-whitelisting only occurs after configuration already permits tool-fs root expansion. The fix was credited to reporter tdjackey. No significant broader media coverage or notable external researcher commentary has been identified (OpenClaw Advisory).

Additional resources


SourceThis report was generated using AI

Related OpenClaw (formerly Moltbot or Clawdbot) vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-48063CRITICAL9.3
  • JavaScript logoJavaScript
  • openclaw
NoYesAug 03, 2026
CVE-2026-45623CRITICAL9.1
  • JavaScript logoJavaScript
  • vitess-24
NoYesJul 27, 2026
CVE-2026-16633HIGH8.6
  • JavaScript logoJavaScript
  • librechat
NoYesAug 06, 2026
CVE-2026-62229HIGH7.7
  • OpenClaw (formerly Moltbot or Clawdbot) logoOpenClaw (formerly Moltbot or Clawdbot)
  • openclaw
NoYesJul 17, 2026
CVE-2026-62228HIGH7.7
  • OpenClaw (formerly Moltbot or Clawdbot) logoOpenClaw (formerly Moltbot or Clawdbot)
  • openclaw
NoYesJul 17, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management