Openclaw cli: OpenClaw's exec allowlist analysis rejects shell expansion in unquoted heredocs (CVE-2026-44115)
Description
OpenClaw CLI versions up to 2026.4.21 have a vulnerability where the exec allowlist analysis fails to reject shell expansions in unquoted heredocs. This flaw allows an approved command to appear safe while the shell evaluates potentially unsafe expansions at runtime. The issue is fixed in version 2026.4.22 by enhancing the exec command analyzer to properly track heredoc bodies and reject unquoted expansions.
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's exec allowlist analysis mechanism did not properly reject shell expansions within unquoted heredocs, allowing malicious shell expansions to be hidden in the heredoc body. This could cause an allowlisted command to be interpreted differently at runtime than what was approved, potentially leading to unsafe command execution. The vulnerability affects openclaw versions from 2026.1.29 up to but not including 2026.4.22. The fix, included in version 2026.4.22, improves the exec command analyzer to track heredoc bodies accurately, reject unquoted heredoc expansion tokens and continuation-splice bypasses, and preserve quoted heredocs and safe literal text.
Potential Impact
An attacker could craft an allowlisted command with an unquoted heredoc that contains hidden shell expansions, causing the shell to execute unintended commands at runtime. This undermines the safety guarantees of the exec allowlist, potentially leading to command injection or execution of malicious code. The vulnerability affects the integrity of command execution in affected versions of OpenClaw CLI.
Mitigation Recommendations
A fix is available in OpenClaw CLI version 2026.4.22. Users should upgrade to this version or later to ensure the exec allowlist analysis properly rejects unsafe shell expansions in heredocs. No additional mitigation is required once the update is applied.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-44115
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
Threat ID: 6ac2459212601ec6a3164962
Added to database: 10/04/2026, 12:24:50 UTC
Last enriched: 10/04/2026, 12:40:03 UTC
Last updated: 10/04/2026, 16:08:38 UTC
Views: 2
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.