OpenClaw Vulnerability: Arbitrary Code Execution via .env File Override

OpenClaw Vulnerability: Arbitrary Code Execution via .env File Override

The National Vulnerability Database has disclosed CVE-2026-41336, a high-severity vulnerability affecting OpenClaw prior to version 2026.3.31. This flaw allows workspace .env files to override the OPENCLAW_BUNDLED_HOOKS_DIR environment variable, a critical mechanism for maintaining code integrity.

This override capability is a significant problem. Attackers can leverage it to replace legitimate, default-on bundled hooks with their own malicious code. By tricking users into opening an untrusted workspace, an attacker can achieve arbitrary code execution, effectively taking control of the system. The CVSS score of 7.8 (HIGH) underscores the severe impact on confidentiality, integrity, and availability.

This isn’t just a configuration oversight; it’s a direct path to system compromise. Defenders need to recognize that seemingly innocuous configuration files can become potent attack vectors when they can manipulate execution paths. The attacker’s calculus here is simple: target developer environments where OpenClaw is used, knowing that a compromised workspace can yield high-value access.

What This Means For You

  • If your organization uses OpenClaw, immediately identify all instances running versions prior to 2026.3.31. Patch these systems to 2026.3.31 or newer without delay. Furthermore, implement strict controls over workspace provenance and educate developers on the risks of opening untrusted projects. This vulnerability allows arbitrary code execution, which means a full system compromise is on the table.
🛡️ Am I exposed to this? Get detection rules for CVE-2026-41336 — Splunk, Sentinel, Elastic, QRadar & more

Related ATT&CK Techniques

🛡️ Detection Rules

3 rules · 6 SIEM formats

3 detection rules auto-generated for this incident, mapped to MITRE ATT&CK. Sigma YAML is free — export to any SIEM format via the Intel Bot.

critical T1204.002 Execution

CVE-2026-41336: OpenClaw Arbitrary Code Execution via .env Override

Sigma YAML — free preview
✓ Sigma · Splunk SPL Sentinel KQL Elastic QRadar AQL Wazuh Get rules for your SIEM →

Indicators of Compromise

IDTypeIndicator
CVE-2026-41336 RCE OpenClaw versions prior to 2026.3.31
CVE-2026-41336 RCE Vulnerable component: workspace .env files overriding OPENCLAW_BUNDLED_HOOKS_DIR
CVE-2026-41336 RCE Attack vector: Loading attacker-controlled hook code via OPENCLAW_BUNDLED_HOOKS_DIR
Source & Attribution
Source PlatformNVD
ChannelNational Vulnerability Database
PublishedApril 24, 2026 at 01:16 UTC

This content was AI-rewritten and enriched by Shimi's Cyber World based on the original source. All intellectual property rights remain with the original author.

Believe this infringes your rights? Submit a takedown request.

Related Posts

CVE-2026-6732 — Libxml2 Denial of Service

CVE-2026-6732 — A flaw was found in libxml2. This vulnerability occurs when the library processes a specially crafted XML Schema Definition (XSD) validated document that...

vulnerabilityCVEmedium-severitydenial-of-servicecwe-843
/SCW Vulnerability Desk /MEDIUM /6.5 /⚑ 2 IOCs /⚙ 2 Sigma

OpenShell Mirror Mode Allows Arbitrary Code Execution

CVE-2026-41355 — OpenShell before 2026.3.28 contains an arbitrary code execution vulnerability in mirror mode that converts untrusted sandbox files into workspace hooks. Attackers with mirror...

vulnerabilityCVEhigh-severitycode-executioncwe-829
/SCW Vulnerability Desk /HIGH /7.3 /⚑ 4 IOCs /⚙ 3 Sigma

OpenClaw: High-Severity Access Control Bypass Looms

CVE-2026-41353 — OpenClaw before 2026.3.22 contains an access control bypass vulnerability in the allowProfiles feature that allows attackers to circumvent profile restrictions through persistent profile...

vulnerabilityCVEhigh-severitycwe-472
/SCW Vulnerability Desk /HIGH /8.1 /⚑ 4 IOCs /⚙ 2 Sigma