Skip to content
CVSS 7.8 · HIGH

CVE-2026-41336

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.

View on NVD

Analysis

OpenClaw is a niche open-source project, and while this vulnerability allows for arbitrary code execution via malicious workspace environment files, it is not a common tool in the standard web, mobile, or backend development stack. It does not warrant a community-wide alert as the impact is limited to a very small user base.

Severity

Score: 7.8(HIGH)
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
AV: LOCAL
AC: LOW
PR: NONE
UI: REQUIRED
S: UNCHANGED
C: HIGH
I: HIGH
A: HIGH
Weakness (CWE): CWE-829

EPSS

Probability of exploitation (next 30 days): 0.0001 (0.0%)
Percentile: 2.8%
EPSS: 2026-05-06

Affects

openclaw:openclaw

Technical 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: 4/23/2026, 10:16:39 PM
Last modified: 4/28/2026, 6:55:54 PM

References

HomeEventsBlogResourcesTeam