{"id":"CVE-2026-41336","published":"2026-04-23T21:57:56Z","modified":"2026-04-24T11:03:12Z","title":"OpenClaw < 2026.3.31 - Arbitrary Hook Code Execution via OPENCLAW_BUNDLED_HOOKS_DIR Environment Variable Override","vendor":"OpenClaw","product":"OpenClaw","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00138,"percentile":0.03247,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-3qpv-xf3v-mm45","tags":["vendor-advisory"]},{"url":"https://github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/openclaw-arbitrary-hook-code-execution-via-openclaw-bundled-hooks-dir-environment-variable-override","tags":["third-party-advisory"]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":0.65},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"openclaw","affectedVersions":[{"vendor":"OpenClaw","product":"OpenClaw","versions":["< 2026.3.31"]}],"fixedVersions":[{"vendor":"OpenClaw","product":"OpenClaw","versions":["2026.3.31"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-24T11:02:41.369181Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"openclaw","vulnerableRanges":["<2026.3.31"],"patched":["2026.3.31"],"from":["GHSA-3qpv-xf3v-mm45"],"provenance":"source"}],"summary":{"text":"OpenClaw before 2026.3.31 lets workspace .env files override the OPENCLAW_BUNDLED_HOOKS_DIR environment variable, so the product loads hook code from an attacker-chosen location in place of its trusted default bundled hooks. An attacker who can get a malicious workspace opened, and a user to interact with it, can execute arbitrary code through local access with no authentication required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:23Z"},"euvd":{"id":"EUVD-2026-25320","exploited":false,"provenance":"source"}}