PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-41336 OpenClaw CVE debrief

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. This vulnerability affects OpenClaw installations, particularly those with untrusted workspaces, and requires immediate attention from defenders to prevent potential code execution. Verification and remediation are crucial to mitigate the risk of arbitrary code execution.

Vendor
OpenClaw
Product
Unknown
CVSS
HIGH 8.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-04-23
Original CVE updated
2026-11-11
Advisory published
2026-04-23
Advisory updated
2026-11-11

Who should care

Defenders responsible for OpenClaw installations, security teams, and developers using OpenClaw should assess exposure and prioritize verification and remediation. This includes reviewing OpenClaw installations, restricting access to workspace .env files, and monitoring for suspicious activity related to OpenClaw hooks. Operators, platforms, vulnerability-management teams, and security teams are impacted by this vulnerability and must take action to verify

Why it matters

CVE-2026-41336 allows attackers to load malicious hook code in OpenClaw, potentially leading to code execution. Defenders should verify and update OpenClaw installations, restrict access to workspace .env files, and monitor for suspicious activity.

  • Potential code execution through attacker-controlled hooks
  • Verification of OpenClaw installations and hook code integrity is required
  • Restricting access to workspace .env files can help prevent exploitation
  • Remediation priority is high due to the potential for arbitrary code execution

Technical summary

The vulnerability allows attackers to load attacker-controlled hook code by overriding the OPENCLAW_BUNDLED_HOOKS_DIR environment variable using workspace .env files. This can lead to arbitrary code execution in OpenClaw installations, particularly those with untrusted workspaces. Defenders should prioritize verifying and updating OpenClaw installations to prevent exploitation, and review compensating controls for exposed systems while remediation is scheduled and verified. Affected product context and defensive impact must be considered to address this vulnerability effectively.

Defensive priority

Defenders should prioritize verifying and updating OpenClaw installations to prevent exploitation.

Recommended defensive actions

  • Verify OpenClaw installations and update to version 2026.3.31 or later
  • Restrict access to workspace .env files
  • Monitor for suspicious activity related to OpenClaw hooks
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The CVE record and NVD entry provide details on the vulnerability, but additional information on affected versions and remediation is limited. Further verification is needed to assess exposure and prioritize remediation. Defenders should review OpenClaw installations, restrict access to workspace .env files, and monitor for suspicious activity related to OpenClaw hooks.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-41336 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-41336

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-41336 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-41336

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://github.com/openclaw/openclaw/commit/330a9f98cb29c79b1c16a2117e03d6276a0d6289

    [email protected] - Patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/openclaw/openclaw/security/advisories/GHSA-3qpv-xf3v-mm45

    [email protected] - Vendor Advisory

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/openclaw-arbitrary-hook-code-execution-via-openclaw-bundled-hooks-dir-environment-variable-override

    [email protected] - Third Party Advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.