Openclaw cli: OpenClaw Host-Exec Environment Variable Injection
Description
OpenClaw CLI versions up to 2026.3.28 are affected by an environment variable injection vulnerability in the Host-Exec feature. This allows environment variables controlled by the user to influence interpreters, shells, or build tools during host execution. The vulnerability is scoped to the OpenClaw trust model and does not assume multi-tenant service boundaries. A fix is available in version 2026.4.8.
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 has a vulnerability in its Host-Exec feature where environment variables can be injected and inherited by interpreters, shells, or build tools. This could affect the execution environment in ways controlled by the user. The issue affects versions up to and including 2026.3.28 and was fixed in version 2026.4.8. The fix was verified with regression tests and committed to the main branch (commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5). This vulnerability is scoped within the OpenClaw trust model and does not consider multi-tenant service boundaries.
Potential Impact
User-controlled environment variables can influence the behavior of interpreters, shells, or build tools during host execution, potentially leading to unintended command execution contexts or altered build processes. The vulnerability does not imply remote exploitation or multi-tenant impact but affects local execution environments where OpenClaw is used.
Mitigation Recommendations
Upgrade OpenClaw CLI to version 2026.4.8 or later, which contains the official fix for this environment variable injection vulnerability. The fix has been verified with regression tests. No additional mitigation is required beyond applying the patch.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-GHSA-w9j9-w4cp-6wgr
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6ac2458012601ec6a3164069
Added to database: 10/04/2026, 12:24:32 UTC
Last enriched: 10/04/2026, 12:29:14 UTC
Last updated: 10/04/2026, 12:29:14 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.
External Links
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.