Openclaw cli: OpenClaw: Self-Whitelisting in appendLocalMediaParentRoots Allows Arbitrary File Read & Credential Exfiltration (CVE-2026-41366)
Description
OpenClaw CLI versions before 2026.3.31 contain a vulnerability in the appendLocalMediaParentRoots function that allows self-whitelisting of media parent directories. This flaw enables model-initiated arbitrary file reads on the host and potential credential exfiltration, but only if the configuration already permits tool filesystem root expansion, narrowing the impact. The issue is patched in version 2026.3.31 and later.
CVSS v4.0
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
The OpenClaw CLI package (npm) has a vulnerability (CVE-2026-41366) in the appendLocalMediaParentRoots function within src/media/local-roots.ts. This function self-whitelists media parent directories, which can be exploited by a model to read arbitrary files on the host and exfiltrate credentials. However, exploitation requires that the configuration already allows tool filesystem root expansion, limiting the scope of impact. The vulnerability affects versions from 2026.1.29 up to but not including 2026.3.31. The issue was fixed in commit 1ca4261d7e055d0be141ed79ebb1365d0fbc7364 and patched in version 2026.3.31.
Potential Impact
An attacker can leverage the self-whitelisting behavior in appendLocalMediaParentRoots to read arbitrary files on the host system and potentially exfiltrate credentials. The impact is limited to environments where the configuration permits tool filesystem root expansion, reducing the default critical severity to medium. There are no known exploits in the wild.
Mitigation Recommendations
A patch is available and should be applied by upgrading OpenClaw CLI to version 2026.3.31 or later. This update removes the self-whitelisting behavior that enables arbitrary file read and credential exfiltration. No additional mitigation steps are indicated by the maintainer.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-41366
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6ac245a112601ec6a3165d84
Added to database: 10/04/2026, 12:25:05 UTC
Last enriched: 10/04/2026, 12:48:13 UTC
Last updated: 10/04/2026, 16:08:38 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.