published 23 Apr 2026 · updated 11 Nov 2026
OpenClaw < 2026.3.31 - Arbitrary Hook Code Execution via OPENCLAW_BUNDLED_HOOKS_DIR Environment Variable Override
7.8HighCVSS 7.8EPSS 0%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2026.3.31.
OpenClaw before 2026.3.31 allows workspace .env files to override the OPENCLAW_BUNDLED_HOOKS_DIR environment variable, enabling loading of attacker-controlled hook code. Attackers can replace trusted default-on bundled hooks from untrusted workspaces to execute arbitrary code.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| OpenClaw | openclaw | <2026.3.31 | 2026.3.31 |
| OpenClaw | <2026.3.31 | 2026.3.31 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket