Openclaw
CVE-2026-32003
MEDIUM
Severity by source
AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
3DescriptionCVE.org
OpenClaw versions prior to 2026.2.22 contain an environment variable injection vulnerability in the system.run function that allows attackers to bypass command allowlist restrictions via SHELLOPTS and PS4 environment variables. An attacker who can invoke system.run with request-scoped environment variables can execute arbitrary shell commands outside the intended allowlisted command body through bash xtrace expansion.
AnalysisAI
OpenClaw versions before 2026.2.22 allow high-privileged attackers to execute arbitrary shell commands by injecting malicious environment variables into the system.run function, bypassing the intended command allowlist protections. By exploiting bash xtrace expansion through SHELLOPTS and PS4 variables, an attacker with request-scoped environment variable access can achieve code execution beyond the restricted command set. No patch is currently available for this command injection vulnerability.
Technical ContextAI
The vulnerability resides in OpenClaw's system.run function, which implements a command allowlist mechanism intended to restrict which shell commands can be executed. However, the implementation fails to sanitize environment variables passed in request scope, specifically SHELLOPTS and PS4—bash-specific environment variables that control shell behavior and debugging output respectively. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) categorizes this as an OS command injection flaw. When bash xtrace mode (set -x) is enabled via PS4 or SHELLOPTS, bash expands the PS4 variable before executing commands, allowing attackers to inject arbitrary code that executes outside the allowlist validation layer. The attack leverages bash's internal expansion semantics to circumvent the security boundary intended by the allowlist mechanism.
RemediationAI
Immediately upgrade OpenClaw to version 2026.2.22 or later to apply the security patch. See the vendor security advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-2fgq-7j6h-9rm4 for verification of patched versions. Until patching is completed, implement network-level access controls to restrict authenticated user access to the system.run function to trusted administrator accounts only, and consider running OpenClaw in a restricted container environment with minimal environment variable propagation. Additionally, audit environment variables being passed to system.run invocations in application logs to detect potential exploit attempts using SHELLOPTS or PS4 injection patterns. Disabling bash xtrace mode system-wide can further mitigate exploitation but is not a substitute for patching.
Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
OpenClaw sandbox browser functionality launches x11vnc for noVNC observer sessions without requiring authentication, all
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low
OpenClaw versions 2026.1.30 and below fail to validate Telegram webhook secret tokens when `channels.telegram.webhookSec
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-2fgq-7j6h-9rm4