OpenClaw
CVE-2026-41369
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate with low-privilege credentials
-
DeliverySubmit request invoking host exec operation
-
ExploitInject malicious environment variables (DOCKER_REGISTRY, SSL_CERT_FILE, etc.)
-
InstallOpenClaw processes unsanitized variables
-
C2Host exec redirects to attacker-controlled resources
-
ExecuteCapture credentials or deliver malicious packages
-
ImpactCompromise host execution integrity
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Resource sphere isolation
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access with low-privilege credentials (PR:L) to OpenClaw instances. Exploitation specifically requires that the attacker can influence or inject environment variables processed during OpenClaw host exec operations - typically when submitting jobs, build requests, or deployment tasks that trigger external command execution. The vulnerability is exploitable against default configurations where environment variable sanitization is absent (versions pre-2026.3.31). Attack is limited by the need for valid user credentials and access to functionality that invokes host exec operations; purely API-based interactions without exec triggers are not vulnerable. Network accessibility (AV:N) means remote authenticated users can exploit without local system access. |
| Impact | Real-world risk is MODERATE-HIGH despite the 7.1 CVSS score. The CVSS:4.0 vector shows favorable attacker conditions: network-accessible (AV:N), low attack complexity (AC:L), no attack requirements (AT:N), and no user interaction (UI:N), with high confidentiality impact (VC:H). However, the PR:L (low privileges required) constraint significantly reduces the attack surface compared to unauthenticated scenarios. The Docker and registry override capabilities present supply chain attack vectors - attackers could inject malicious dependencies during build/deployment operations, potentially achieving code execution beyond the stated confidentiality impact. The 'Information Disclosure' tag suggests credential/secret exposure risk when TLS validation is bypassed. Key unknowns: EPSS probability data missing; no CISA KEV listing indicates no confirmed widespread exploitation; exploit code status unclear from available references. Prioritization depends heavily on whether OpenClaw instances are exposed to untrusted authenticated users and whether host exec operations process user-influenced environment contexts. Organizations using OpenClaw in CI/CD pipelines or multi-tenant environments face elevated risk due to potential lateral movement via compromised build environments. |
| Exploit ScenarioDerived | An authenticated attacker with low-privilege access to OpenClaw submits a request triggering host exec operations while injecting environment variables such as DOCKER_REGISTRY=attacker.com:5000 and NODE_TLS_REJECT_UNAUTHORIZED=0. OpenClaw's unsanitized exec handler uses these variables during a container pull or package install operation, redirecting requests to the attacker-controlled registry without TLS validation. The attacker's registry responds with credential challenges, capturing authentication tokens, or serves malicious packages/images that execute on the host system, potentially escalating beyond the initial confidentiality impact to achieve code execution or lateral movement in the infrastructure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
Environment variable injection in OpenClaw (pre-2026.3.31) allows authenticated remote attackers to compromise host execution integrity by injecting malicious variables that override package managers, Docker registries, compiler paths, and TLS configurations during host exec operations. The vulnerability exhibits high confidentiality impact (CVSS:4.0 VC:H) with network attack vector and low complexity (AV:N/AC:L), requiring only low-privilege authentication (PR:L). VulnCheck disclosure indicates this affects Docker-related operations, with fixes available via GitHub commit eb8de67 and tracked under GHSA-cg7q-fg22-4g98. EPSS and KEV data not available at time of analysis.
RemediationAI
Upgrade to OpenClaw version 2026.3.31 or later, which implements proper environment variable sanitization for host exec operations per commit eb8de6715f02949c21c4e895fffc8a6dcb00975c available at https://github.com/openclaw/openclaw/commit/eb8de6715f02949c21c4e895fffc8a6dcb00975c. The patch adds filtering for package manager variables (NPM_CONFIG_*, PIP_INDEX_URL, etc.), registry configurations (DOCKER_REGISTRY, REGISTRY_AUTH_FILE), compiler paths (CC, CXX, LD_LIBRARY_PATH), and TLS override variables (SSL_CERT_FILE, NODE_TLS_REJECT_UNAUTHORIZED, REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE). If immediate patching is not feasible, implement these compensating controls: (1) Restrict OpenClaw host exec operations to trusted administrative users only - remove PR:L access for untrusted accounts, trading reduced functionality for attack surface reduction; (2) Run OpenClaw processes in isolated containers with read-only root filesystems and explicit environment variable allowlists via seccomp/AppArmor profiles, which adds operational complexity but prevents variable injection at the container runtime level; (3) Monitor and alert on unexpected environment variable patterns in OpenClaw logs, particularly TLS_REJECT_UNAUTHORIZED=0 or non-standard registry URLs, though this provides detection rather than prevention. Consult VulnCheck advisory at https://www.vulncheck.com/advisories/openclaw-insufficient-environment-variable-sanitization-in-host-execution for additional context.
Affected Packages
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's host execution component (CWE-668: Exposure of Resource to Wrong Sphere) fails to properly sanitize environment variables before executing commands on the host system. The vulnerability specifically targets variables controlling critical system dependencies: package manager configuration (NPM_CONFIG_*, PIP_*, etc.), container registry endpoints (DOCKER_REGISTRY, REGISTRY_AUTH), compiler toolchain paths (CC, CXX, PATH), and TLS/SSL certificate validation settings (SSL_CERT_FILE, REQUESTS_CA_BUNDLE, NODE_TLS_REJECT_UNAUTHORIZED). When OpenClaw performs host exec operations, it inherits or processes user-controlled environment variables without adequate filtering, allowing attackers to redirect dependency resolution to malicious sources, disable certificate validation, or execute attacker-controlled binaries. This is particularly critical in containerized environments where Docker and registry configurations can be hijacked to pull malicious images or leak credentials.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (vulncheck) · only source for this CVE.
CVSS VectorVendor: vulncheck
DescriptionCVE.org
OpenClaw before 2026.3.31 contains insufficient environment variable sanitization in host exec operations, failing to filter package, registry, Docker, compiler, and TLS override variables. Attackers can exploit this by injecting malicious environment variables to override critical system configurations and compromise host execution integrity.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.31.
Executive ViewAI
OpenClaw versions prior to 2026.3.31 contain an environment variable injection vulnerability that allows authenticated users to manipulate package managers, Docker registries, and compiler configurations during host execution operations, potentially compromising build integrity and supply chain security. Any organization using OpenClaw for containerized deployments or CI/CD pipelines with multiple user accounts faces risk of malicious configuration injection by low-privilege users.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict host exec operation permissions to administrative accounts only, eliminating low-privilege user access; (2) Implement environment variable whitelisting at the OS/container level to prevent override of critical paths (package managers, Docker registries, TLS cert locations); (3) Monitor and audit environment variable modifications during OpenClaw host exec operations; (4) Apply GitHub commit eb8de67 manually if source-building is feasible pending official release of version 2026.3.31.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Related Vulnerabilities in OpenClaw Multiple Security Flaws
View all 11Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB