Skip to main content

OpenClaw EUVDEUVD-2026-26082

| CVE-2026-41373 MEDIUM
Uncontrolled Search Path Element (CWE-427)
2026-04-28 VulnCheck GHSA-g8xp-qx39-9jq9
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain host-exec permission approval
  2. Delivery
    Craft build request with environment variable overrides
  3. Exploit
    Submit request to OpenClaw
  4. Install
    OpenClaw spawns build process with attacker environment variables
  5. C2
    Build system invokes overridden compiler binary
  6. Execute
    Arbitrary code execution with build process privileges
  7. Impact
    Compromise of built artifact or host system

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
Exploitation Conditions

Exploitation requires: (1) authenticated access to an OpenClaw instance, (2) approval to submit host-exec requests (delegated capability that may be granted to external users), and (3) ability to set environment variables in the host-exec request payload. The host-env-security-policy.json must fail to block CC, CXX, CARGO_BUILD_RUSTC, or CMAKE_C_COMPILER variable overrides - specifically, these variables are not present in the allowlist or blocklist of the policy file in affected versions. This is a configuration/policy defect, not a default-off feature. The vulnerability does not require non-default setup; any OpenClaw instance with users granted host-exec permissions is vulnerable. The limiting factors are: (a) authentication is required - remote unauthenticated access does not trigger this vulnerability, and (b) the user must have been approved for host-exec permissions, which is typically a controlled delegation rather than an open capability.

Impact

This is a privilege escalation and code execution vulnerability with moderate real-world risk. CVSS 5.8 (AV:L/AC:L/AT:P/PR:L) indicates local vector, low complexity, but requires prior authentication and approved host-exec privileges - the AT:P (time-dependent) modifier suggests exploitation requires specific timing or conditions. The KEV status is unknown, and no public exploit has been identified, suggesting this may be a logic-design flaw rather than actively weaponized. However, the impact is significant: VI:H (high integrity) and direct RCE capability during builds mean that any organization running untrusted code through OpenClaw faces real risk if they grant host-exec permissions to users. The real-world risk depends on deployment model - if OpenClaw is used to execute third-party models or untrusted builders, the risk is HIGH; if access is tightly controlled to trusted admins only, the risk is lower. The AT:P modifier and PR:L authentication requirement are significant limiting factors that reduce the practical attack surface compared to unauthenticated network exploits.

Exploit ScenarioDerived

An attacker who has been granted approved host-exec permissions in OpenClaw (e.g., a contractor or third-party CI/CD user) submits a build request with environment variables set to CC=/tmp/attacker-cc and CXX=/tmp/attacker-cxx, pointing to attacker-controlled binaries. When OpenClaw executes the build process, the build system respects these environment variable overrides and invokes the attacker's binaries instead of the legitimate compiler. The attacker's binary executes arbitrary code - such as stealing credentials, injecting malware, or exfiltrating the codebase - with the privileges of the OpenClaw build process. The vulnerability requires the attacker already have host-exec approval, but once granted, the compromise is immediate and complete.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 28, 2026

OpenClaw before 2026.3.31 allows authenticated users with approved host-exec requests to execute arbitrary code during build processes by overriding compiler binary environment variables (CC, CXX, CARGO_BUILD_RUSTC, CMAKE_C_COMPILER) through an incomplete host-env-security-policy.json configuration. The vulnerability requires local access and prior authentication to an OpenClaw instance, but enables full code execution with inherited privileges during compilation. No public exploit code has been identified at time of analysis.

RemediationAI

Upgrade to OpenClaw 2026.3.31 or later. The vendor has released a patch via commit e277a37f896b5011a1df06e6490c6630074d0afa (https://github.com/openclaw/openclaw/commit/e277a37f896b5011a1df06e6490c6630074d0afa), which updates the host-env-security-policy.json to include explicit restrictions on compiler-related environment variables (CC, CXX, CARGO_BUILD_RUSTC, CMAKE_C_COMPILER). Until patching is possible, restrict approval of host-exec requests to only trusted users and implement additional environment variable filtering in any wrapper scripts that invoke OpenClaw. Audit existing host-exec permissions and revoke those granted to untrusted or semi-trusted accounts. Note that this is a policy-layer fix rather than code-level change, so patch deployment should be verified by inspecting the updated security policy file.

Affected VersionsENISA

OpenClaw 0 <2026.3.31

Affected Packages

npm openclaw fix: 2026.3.31

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenClaw is a system for managing and executing untrusted workloads with restricted permissions through host-exec policies. The vulnerability stems from incomplete environment variable restrictions in the host-env-security-policy.json security policy file (CWE-427: Uncontrolled Search Path Element). The policy fails to block modification of critical compiler-invocation environment variables that determine which compiler binary is executed. When a user with approved host-exec permissions constructs a malicious request, they can inject environment variables that redirect standard compiler commands (CC, CXX, CARGO_BUILD_RUSTC, CMAKE_C_COMPILER) to attacker-controlled binaries. Because build systems invoke these environment variables without further validation, the attacker's binary executes with the privileges of the build process, achieving code execution.

Know when Openclaw gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck) · only source for this CVE.

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 28, 2026 - 19:52 NVD
6.1 (MEDIUM) 5.8 (MEDIUM)
Patch released
Apr 28, 2026 - 19:30 nvd
Patch available
CVE Published
Apr 28, 2026 - 18:09 nvd
MEDIUM 5.8

DescriptionCVE.org

OpenClaw before 2026.3.31 contains an incomplete host-env-security-policy.json that fails to restrict compiler binary environment variables, allowing untrusted models to substitute CC, CXX, CARGO_BUILD_RUSTC, and CMAKE_C_COMPILER via environment overrides. Attackers with approved host-exec requests can override compiler binaries to execute arbitrary code during build processes.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on openclaw (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 2026.3.31.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-53857 HIGH POC
8.6 Jun 16

Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-44118 HIGH POC
8.5 May 06

Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy