CVE-2026-41336 OpenClaw < 2026.3.31 - Arbitrary Hook Code Execution via OPENCLAW_BUNDLED_HOOKS_DIR Environment Variable Override
HighCVSS 8.5
EPSS 0.20%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm openclaw | < 2026.3.31 | 2026.3.31 | Fixed |
| npm openclaw(npm) | < 2026.3.31; <= 2026.3.28 | 2026.3.31 | Fixed |
| openclaw | < 2026.3.31 | 2026.3.31 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm openclaw | < 2026.3.31 | 2026.3.31 |
| npm openclaw(npm) | <= 2026.3.28 | No fix listed |
| openclaw | < 2026.3.31 | 2026.3.31 |
| npm openclaw(npm) | < 2026.3.31 | 2026.3.31 |
References
- GitHub Security Advisory (GHSA-3qpv-xf3v-mm45) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: OpenClaw < 2026.3.31 - Arbitrary Hook Code Execution via OPENCLAW_BUNDLED_HOOKS_DIR Environment Variable Override third-party-advisory
- github.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product