Skip to main content
← All vulnerabilities
CVE-2026-41336GHSA-3QPV-XF3V-MM45

OpenClaw < 2026.3.31 - Arbitrary Hook Code Execution via OPENCLAW_BUNDLED_HOOKS_DIR Environment Variable Override

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2026.3.31
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • OpenClaw OpenClaw

    fixed in 2026.3.31

  • openclawnpm

    fixed in 2026.3.31

References 3

GitHub · openclaw/openclaw

vulncheck.com