PT-2026-26385 · Openclaw · Openclaw
Tdjackey
·
Published
2026-03-03
·
Updated
2026-03-20
·
CVE-2026-32003
CVSS v4.0
7.5
High
| Vector | AV:N/AC:H/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
OpenClaw versions prior to 2026.2.22
Description
OpenClaw contains an environment variable injection issue in the
system.run function. This allows attackers to bypass command allowlist restrictions using the SHELLOPTS and PS4 environment variables. An attacker capable of invoking system.run with request-scoped environment variables can execute arbitrary shell commands outside the intended allowlisted command body through bash xtrace expansion. The issue arises because host exec environment sanitization did not block SHELLOPTS and PS4, and request-scoped environment overrides were passed through to shell wrappers, enabling command substitution.Recommendations
Versions prior to 2026.2.22 should be updated. Block
SHELLOPTS and PS4 in host exec environment sanitizers. For shell wrappers, reduce request-scoped environment overrides to an explicit allowlist including TERM, LANG, LC *, COLORTERM, NO COLOR, and FORCE COLOR.Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Openclaw