{"id":"CVE-2026-41336","aliases":["GHSA-3qpv-xf3v-mm45"],"url":"https://o3.security/vulnerability/CVE-2026-41336","summary":"OpenClaw < 2026.3.31 - Arbitrary Hook Code Execution via OPENCLAW_BUNDLED_HOOKS_DIR Environment Variable Override","details":"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":"2026-04-23T21:57:56.165Z","modified":"2026-08-17T03:48:17.202079910Z","cvss":null,"epss":{"score":0.00133,"percentile":0.03193,"asOf":"2026-09-16"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"openclaw","fixedVersion":"2026.3.31"}],"fix":{"url":"https://github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289","label":"openclaw/openclaw@330a9f9"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41336.json"},{"type":"ADVISORY","url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-3qpv-xf3v-mm45"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41336"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openclaw-arbitrary-hook-code-execution-via-openclaw-bundled-hooks-dir-environment-variable-override"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-17T03:48:17.202079910Z"}}