# CVE-2026-32056: OpenClaw < 2026.2.22 - Remote Code Execution via Shell Startup Environment Variable Injection in system.run

- Severity: High 7.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-03-03T22:12:51.000Z
- Modified: 2026-06-23T16:15:04.152Z
- Also known as: GHSA-xgf2-vxv2-rrmg
- Weaknesses: CWE-15, CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- OpenClaw OpenClaw: before 2026.2.22 (not affected: 2026.2.22)
- openclaw (npm): before 2026.2.22

## Every score

- VulnCheck: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/openclaw/openclaw/security/advisories/GHSA-xgf2-vxv2-rrmg> (vendor-advisory, web)
- <https://github.com/openclaw/openclaw/commit/c2c7114ed39a547ab6276e1e933029b9530ee906> (patch, web)
- <https://www.vulncheck.com/advisories/openclaw-remote-code-execution-via-shell-startup-environment-variable-injection-in-system-run> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32056> (advisory)
- <https://github.com/openclaw/openclaw> (package)

## Sources

- CVE List: [CVE-2026-32056](https://www.cve.org/CVERecord?id=CVE-2026-32056), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-xgf2-vxv2-rrmg](https://github.com/advisories/GHSA-xgf2-vxv2-rrmg), CC-BY-4.0, modified 2026-03-30
- NVD: [CVE-2026-32056](https://nvd.nist.gov/vuln/detail/CVE-2026-32056), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32056 · Whole record: https://cve.day/CVE-2026-32056.json · Rebuilt by cve.day 2026-11-25T22:59:16.386Z
