Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-32056

OpenClaw's shell startup env injection bypasses system.run allowlist intent (RCE class)
Back to all
CVE

CVE-2026-32056

OpenClaw's shell startup env injection bypasses system.run allowlist intent (RCE class)

Summary

system.run environment sanitization allowed shell-startup env overrides (HOMEZDOTDIR) that can execute attacker-controlled startup files before allowlist-evaluated command bodies.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: <= 2026.2.21-2 (latest published vulnerable version)
  • Planned patched version: >= 2026.2.22

Technical Details

In affected versions:

  • Env sanitization blocked many dangerous keys, but not startup-sensitive override keys (HOMEZDOTDIR) in host exec env paths.
  • Shell-wrapper analysis for allowlist mode models command bodies, but not shell startup side effects.
  • Runtime execution used sanitized env, so attacker-provided startup-key overrides could run hidden startup payloads first.

Observed exploit vectors:

  • HOME + bash -lc + malicious .bash_profile
  • ZDOTDIR + zsh -c + malicious .zshenv

Fix Commit(s)

  • c2c7114ed39a547ab6276e1e933029b9530ee906

Release Process Note

patched_versions is pre-set to the planned next release (>= 2026.2.22). After the npm release is published, this advisory can be published directly.

OpenClaw thanks @tdjackey for reporting.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.7
-
4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
C
H
U
7.5
-
3.1
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

References

https://github.com/openclaw/openclaw/security/advisories/GHSA-xgf2-vxv2-rrmg, https://nvd.nist.gov/vuln/detail/CVE-2026-32056, https://github.com/openclaw/openclaw/commit/c2c7114ed39a547ab6276e1e933029b9530ee906, https://github.com/openclaw/openclaw, https://www.vulncheck.com/advisories/openclaw-remote-code-execution-via-shell-startup-environment-variable-injection-in-system-run

Severity

7.5

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.5
EPSS Probability
0.00165%
EPSS Percentile
0.37038%
Introduced Version
0,2026.2.21,2026.2.13,2026.2.2,2026.1.29-beta.1,2026.1.27-beta.1,2026.1.20-2
Fix Available
2026.2.22

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading