Home

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.

PUBLISHED Reserved 2026-04-20 | Published 2026-04-23 | Updated 2026-04-24 | Assigner VulnCheck




HIGH: 8.5CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

HIGH: 7.8CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Problem types

CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Product status

Default status
unaffected

Any version before 2026.3.31
affected

2026.3.31 (semver)
unaffected

Credits

Nathan (@nexrin) reporter

KeenSecurityLab finder

References

github.com/...enclaw/security/advisories/GHSA-3qpv-xf3v-mm45 (GitHub Security Advisory (GHSA-3qpv-xf3v-mm45)) vendor-advisory

github.com/...ommit/330a9f98cb29c79b1c16a2117e03d6276a0d6289 (Patch Commit) patch

www.vulncheck.com/...hooks-dir-environment-variable-override (VulnCheck Advisory: OpenClaw < 2026.3.31 - Arbitrary Hook Code Execution via OPENCLAW_BUNDLED_HOOKS_DIR Environment Variable Override) third-party-advisory

cve.org (CVE-2026-41336)

nvd.nist.gov (CVE-2026-41336)

Download JSON