Home

Description

OpenClaw versions prior to 2026.2.22 fail to sanitize shell startup environment variables HOME and ZDOTDIR in the system.run function, allowing attackers to bypass command allowlist protections. Remote attackers can inject malicious startup files such as .bash_profile or .zshenv to achieve arbitrary code execution before allowlist-evaluated commands are executed.

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




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

HIGH: 7.5CVSS:3.1/AV:N/AC:H/PR:L/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-xgf2-vxv2-rrmg (GitHub Security Advisory (GHSA-xgf2-vxv2-rrmg)) third-party-advisory

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

www.vulncheck.com/...onment-variable-injection-in-system-run (VulnCheck Advisory: OpenClaw < 2026.2.22 - Remote Code Execution via Shell Startup Environment Variable Injection in system.run) third-party-advisory

cve.org (CVE-2026-32056)

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

Download JSON