Openclaw cli: OpenClaw has system.run shell-wrapper env injection via SHELLOPTS/PS4 can bypass allowlist intent (RCE)
Affects openclaw-cliSource GCVE Database
Not known to be exploited · CVSS 6.6 Medium : upgrade to 2026.7.1 when convenient.
Data as of 17 Nov 2026, 20:25 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 50% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2026.7.1
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Upgrade openclaw-cli to 2026.7.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewopenclaw-clipkg:brew/openclaw-cliOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available and planned for release in OpenClaw CLI version 2026.2.22. The patch blocks the SHELLOPTS and PS4 environment variables in the host execution environment sanitizers and restricts environment overrides to an explicit allowlist of safe variables. Users should upgrade to version 2026.2.22 once it is published. Until then, be aware that the vulnerability requires the ability to invoke system.run with environment overrides.
Description
OpenClaw CLI versions up to 2026.2.21-2 have a vulnerability in the system.run function where environment variables SHELLOPTS and PS4 can be injected to bypass the allowlist intent, enabling command execution outside the intended scope. This occurs due to insufficient sanitization of these environment variables, which are evaluated by bash during xtrace expansion. The issue is rated medium severity because exploitation requires the ability to invoke system.run with request-scoped environment variables, which is limited to trusted callers under OpenClaw's security model. A fix is planned in version 2026.2.22 that blocks these environment variables and restricts allowed environment overrides.
References
- github.com/openclaw/openclaw/security/advisories/GHSA-2fgq-7j6h-9rm4 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-32003 (opens in a new tab)
- github.com/openclaw/openclaw/commit/e80c803fa887f9699ad87a9e906ab5c1ff85bd9a (opens in a new tab)
- github.com/openclaw/openclaw (opens in a new tab)
- vulncheck.com/advisories/openclaw-remote-code-execution-via-shellopts-ps4-environment-injection-in-system-run (opens in a new tab)