CVE-2026-32003
Environment Variable Injection in OpenClaw system.run Enables Command Bypass
Publication date: 2026-03-19
Last updated on: 2026-03-23
Assigner: VulnCheck
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| openclaw | openclaw | to 2026.2.22 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-78 | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
OpenClaw versions prior to 2026.2.22 have a vulnerability in the system.run function where attackers can inject environment variables. This allows them to bypass command allowlist restrictions by exploiting the SHELLOPTS and PS4 environment variables. Essentially, if an attacker can invoke system.run with environment variables scoped to a request, they can execute arbitrary shell commands outside the intended allowed commands by leveraging bash's xtrace expansion feature.
How can this vulnerability impact me? :
This vulnerability can allow an attacker with the ability to invoke system.run to execute arbitrary shell commands beyond the intended restrictions. This can lead to unauthorized command execution, potentially compromising the confidentiality, integrity, and availability of the affected system.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know