Home

Description

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.

PUBLISHED Reserved 2026-03-10 | Published 2026-03-19 | Updated 2026-03-21 | Assigner VulnCheck




HIGH: 7.5CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

MEDIUM: 6.6CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Problem types

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78)

Product status

Default status
unaffected

Any version before 2026.2.22
affected

2026.2.22 (semver)
unaffected

Credits

tdjackey reporter

References

github.com/...enclaw/security/advisories/GHSA-2fgq-7j6h-9rm4 (GitHub Security Advisory (GHSA-2fgq-7j6h-9rm4)) third-party-advisory

github.com/...ommit/e80c803fa887f9699ad87a9e906ab5c1ff85bd9a (Patch Commit) patch

www.vulncheck.com/...ps4-environment-injection-in-system-run (VulnCheck Advisory: OpenClaw < 2026.2.22 - Remote Code Execution via SHELLOPTS/PS4 Environment Injection in system.run) third-party-advisory

cve.org (CVE-2026-32003)

nvd.nist.gov (CVE-2026-32003)

Download JSON