Openclaw cli: OpenClaw's shell env fallback trusts unvalidated SHELL path from host environment (CVE-2026-32032)
Description
OpenClaw CLI versions up to 2026.2.21-2 contain a vulnerability where the shell environment fallback trusts an unvalidated SHELL path from the host environment. This allows an attacker who can control the local environment or startup environment to influence which shell executable is invoked, potentially leading to high impact compromise. The vulnerability is not remotely exploitable without prior local environment compromise. A patch is available in version 2026.2.22 that validates the SHELL path against trusted locations and falls back safely to /bin/sh.
CVSS v3.1
Score 7.8high
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 shell environment fallback mechanism used the environment variable SHELL without validating that it pointed to a trusted executable. Specifically, it invoked `$SHELL -l -c 'env -0'` which could be manipulated if an attacker controlled the local environment or startup environment, allowing execution of an attacker-controlled shell. The vulnerability requires local environment compromise or injection of an untrusted startup environment and is not remotely exploitable. The patch introduced validation of the SHELL path as an absolute normalized executable, checks against /etc/shells, enforces trusted-prefix fallback checks, and blocks SHELL overrides in the environment variable policy. The fix is planned for release in version 2026.2.22.
Potential Impact
An attacker with the ability to influence the local environment or startup environment can cause OpenClaw CLI to execute an attacker-controlled shell, leading to full confidentiality, integrity, and availability compromise (CVSS 7.8). This is a local privilege escalation or environment injection vulnerability, not remotely exploitable without prior local access or environment control.
Mitigation Recommendations
A patch is available in OpenClaw CLI version 2026.2.22 that addresses this vulnerability by validating the SHELL environment variable and enforcing trusted shell paths. Users should upgrade to version 2026.2.22 or later to remediate this issue. Until then, avoid running OpenClaw CLI in untrusted or compromised environments where the SHELL environment variable can be manipulated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-32032
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac245bd12601ec6a3166beb
Added to database: 10/04/2026, 12:25:33 UTC
Last enriched: 10/04/2026, 13:04:08 UTC
Last updated: 10/04/2026, 16:08:37 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.