CVE-2026-41336: OpenClaw · Workspace `.env` can override the bundled hooks root and load attacker hook code
Affects openclawSource GCVE Database
Not known to be exploited · CVSS 7.8 High : upgrade to 2026.3.31 soon.
Data as of 27 Oct 2026, 02:25 UTC
- Patch
- Available – fixed in 2026.3.31
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade openclaw to 2026.3.31.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmopenclaw | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade OpenClaw to version 2026.3.31 or later, where the vulnerability is fixed. Versions prior to 2026.3.31 are vulnerable. No other mitigations are indicated in the advisory.
Description
OpenClaw versions up to 2026.3.28 allow a workspace .env file to override the bundled hooks root directory, enabling loading of attacker-controlled hook code. This vulnerability is fixed in version 2026.3.31. The flaw can lead to high impact including confidentiality, integrity, and availability compromise.
References
- github.com/openclaw/openclaw/security/advisories/GHSA-3qpv-xf3v-mm45 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-41336 (opens in a new tab)
- github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289 (opens in a new tab)
- github.com/openclaw/openclaw (opens in a new tab)
- github.com/openclaw/openclaw/releases/tag/v2026.3.31 (opens in a new tab)
- vulncheck.com/advisories/openclaw-arbitrary-hook-code-execution-via-openclaw-bundled-hooks-dir-environment-variable-override (opens in a new tab)