Skip to content
OpenAdvisories
High · 7.8 CVE-2026-41336 EUVD-2026-25320GHSA-3qpv-xf3v-mm45GHSA-jx3c-247h-cxwp

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

Published Apr 23, 2026 · Updated Apr 24, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
OpenClaw OpenClaw < 2026.3.31 2026.3.31

Affected packages

EcosystemPackageAffectedFixedRecord
npm openclaw < 2026.3.31 2026.3.31 GHSA-3qpv-xf3v-mm45

Advisories 1

References