CVE-2026-32032: OpenClaw: SHELL env var injection enables local RCE
HIGHOpenClaw, an AI agent framework, fails to validate the SHELL environment variable before spawning shell processes, allowing any local user with low privileges to execute arbitrary commands at the process's privilege level — a classic CWE-426 (Untrusted Search Path) flaw requiring zero exploit tooling. Despite a low absolute EPSS of 0.00127, this vulnerability ranks in the top 97th percentile for exploitation likelihood, and active adversarial interest in the OpenClaw ecosystem is confirmed by the AIID #1368 malicious-skills campaign that delivered credential-stealing malware (AMOS stealer) to affected hosts. AI agent pipelines and CI/CD runners are the highest-risk targets, as OpenClaw processes frequently hold LLM API keys, database credentials, and production infrastructure access that a successful exploit immediately exposes. Teams running pre-2026.2.22 versions should upgrade immediately; as an interim control, sanitize or explicitly set SHELL to a trusted path in any process launch wrapper and audit environment variable isolation across all OpenClaw deployments.
What is the risk?
High practical risk despite local-only attack vector. The combination of trivial exploitation (AC:Low, PR:Low, no public exploit tooling needed), 97th-percentile exploitation likelihood, and the AI agent execution context — where OpenClaw processes routinely hold privileged credentials and pipeline access — elevates real-world risk well above what the CVSS 7.8 score alone conveys. The 396 prior CVEs in this package and active malicious actor interest documented in AIID #1368 further support treating this as an urgent patch priority.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| OpenClaw | pip | — | No patch |
Do you use OpenClaw? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Patch: Upgrade OpenClaw to version 2026.2.22 or later (patch commit 25e89cc86338ef475d26be043aa541dfdb95e52a references the fix).
-
Workaround: Sanitize or explicitly override the SHELL environment variable to a trusted path (e.g., SHELL=/bin/bash) before launching any OpenClaw process in scripts, containers, or CI/CD runners.
-
Containment: Run OpenClaw in minimal-privilege containers with restricted, read-only environment variable sets; strip non-essential variables at container entrypoint.
-
Detection: Monitor process trees for unexpected child process spawning from OpenClaw — anomalous shell invocations or unusual binary paths as child processes are the key signal. Use EDR telemetry to flag SHELL path substitutions.
-
Audit: Review all CI/CD pipelines and automation that launch OpenClaw to verify environment variable isolation and confirm no shared-user contexts exist on hosts running OpenClaw.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-32032?
OpenClaw, an AI agent framework, fails to validate the SHELL environment variable before spawning shell processes, allowing any local user with low privileges to execute arbitrary commands at the process's privilege level — a classic CWE-426 (Untrusted Search Path) flaw requiring zero exploit tooling. Despite a low absolute EPSS of 0.00127, this vulnerability ranks in the top 97th percentile for exploitation likelihood, and active adversarial interest in the OpenClaw ecosystem is confirmed by the AIID #1368 malicious-skills campaign that delivered credential-stealing malware (AMOS stealer) to affected hosts. AI agent pipelines and CI/CD runners are the highest-risk targets, as OpenClaw processes frequently hold LLM API keys, database credentials, and production infrastructure access that a successful exploit immediately exposes. Teams running pre-2026.2.22 versions should upgrade immediately; as an interim control, sanitize or explicitly set SHELL to a trusted path in any process launch wrapper and audit environment variable isolation across all OpenClaw deployments.
Is CVE-2026-32032 actively exploited?
No confirmed active exploitation of CVE-2026-32032 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-32032?
1. Patch: Upgrade OpenClaw to version 2026.2.22 or later (patch commit 25e89cc86338ef475d26be043aa541dfdb95e52a references the fix). 2. Workaround: Sanitize or explicitly override the SHELL environment variable to a trusted path (e.g., SHELL=/bin/bash) before launching any OpenClaw process in scripts, containers, or CI/CD runners. 3. Containment: Run OpenClaw in minimal-privilege containers with restricted, read-only environment variable sets; strip non-essential variables at container entrypoint. 4. Detection: Monitor process trees for unexpected child process spawning from OpenClaw — anomalous shell invocations or unusual binary paths as child processes are the key signal. Use EDR telemetry to flag SHELL path substitutions. 5. Audit: Review all CI/CD pipelines and automation that launch OpenClaw to verify environment variable isolation and confirm no shared-user contexts exist on hosts running OpenClaw.
What systems are affected by CVE-2026-32032?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, CI/CD pipelines for AI, multi-agent orchestration, model serving infrastructure.
What is the CVSS score for CVE-2026-32032?
CVE-2026-32032 has a CVSS v3.1 base score of 7.8 (HIGH). The EPSS exploitation probability is 0.13%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0050 Command and Scripting Interpreter AML.T0081 Modify AI Agent Configuration AML.T0083 Credentials from AI Agent Configuration AML.T0112.000 Local AI Agent Compliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw versions prior to 2026.2.22 contain an arbitrary shell execution vulnerability in shell environment fallback that trusts the unvalidated SHELL path from the host environment. An attacker with local environment access can inject a malicious SHELL variable to execute arbitrary commands with the privileges of the OpenClaw process.
Exploitation Scenario
An attacker with low-privilege local access to a CI/CD runner — via a compromised developer account or shared build environment — exports SHELL=/tmp/.implant, where the malicious binary silently exfiltrates LLM API keys, Stripe credentials, and database URLs present in the runner's environment to an attacker-controlled endpoint. When the pipeline triggers an OpenClaw agent task, OpenClaw's shell fallback logic reads the unvalidated SHELL variable and executes the payload with the permissions of the OpenClaw process. The attacker receives credentials out-of-band and pivots to production AI infrastructure, consistent with the credential exfiltration pattern documented in AIID #1368 where OpenClaw's third-party skills ecosystem was weaponized for the same outcome.
Weaknesses (CWE)
CWE-426 — Untrusted Search Path: The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.
- [Architecture and Design, Implementation] Hard-code the search path to a set of known-safe values (such as system directories), or only allow them to be specified by the administrator in a configuration file. Do not allow these settings to be modified by an external party. Be careful to avoid related weaknesses such as CWE-426 and CWE-428.
- [Implementation] When invoking other programs, specify those programs using fully-qualified pathnames. While this is an effective approach, code that uses fully-qualified pathnames might not be portable to other systems that do not use the same pathnames. The portability can be improved by locating the full-qualified paths in a centralized, easily-modifiable location within the source code, and having the code refer to these paths.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H References
Timeline
Related Vulnerabilities
CVE-2026-33579 9.9 OpenClaw: scope bypass escalates low-priv to admin
Same package: openclaw CVE-2026-32922 9.9 OpenClaw: privilege escalation to RCE via token scope bypass
Same package: openclaw CVE-2026-30741 9.8 OpenClaw: RCE via request-side prompt injection
Same package: openclaw CVE-2026-32038 9.8 OpenClaw: sandbox bypass enables container lateral movement
Same package: openclaw CVE-2026-53838 9.8 OpenClaw: approval scope bypass via reconnection state
Same package: openclaw