CVE-2026-41336
HIGH 8.5CVSS 4.0OpenClaw: Workspace `.env` can override the bundled hooks root and load attacker hook code
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.
- Published
- 23 Apr 2026
- Last modified
- 11 Nov 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-15CWE-829
- Also known as
- GHSA-3qpv-xf3v-mm45
- Sources
- NVDJSONOSV GHSA-3qpv-xf3v-mm45JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.5 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openclaw | openclawcpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:* |
< 2026.3.31 | 2026.3.31 |
| OSV | npm | openclaw | < 2026.3.31 | 2026.3.31 |
References
- https://github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289 · Patch, WEB
- https://github.com/openclaw/openclaw/security/advisories/GHSA-3qpv-xf3v-mm45 · Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/openclaw-arbitrary-hook-code-execution-via-openclaw-bundled-hooks-dir-environment-variable-override · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41336 · ADVISORY
- https://github.com/openclaw/openclaw · PACKAGE
- https://github.com/openclaw/openclaw/releases/tag/v2026.3.31 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 23 Apr 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Apr 2026)