Skip to main content

Openclaw CVE-2026-22177

| EUVDEUVD-2026-12720 MEDIUM
External Control of System or Configuration Setting (CWE-15)
2026-03-18 VulnCheck GHSA-8fmp-37rc-p5g7
6.9
CVSS 4.0 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration Configuration hardening
Impact

The CVSS 3.1 score of 6.1 (Medium severity) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L reflects that this requires local access and low privilege level to trigger, but results in high integrity impact (arbitrary code execution) and low availability impact. The attack complexity is low (no special conditions required), and no user interaction is needed. However, the availability of a vendor patch and active documentation from security research firm VulnCheck suggest this is a known, addressable risk rather than a zero-day. The local attack vector constraint significantly limits real-world impact in typical cloud and containerized deployments where attackers would first need to gain local system access; however, in shared hosting, on-premises, or developer machine scenarios, this becomes a critical concern. The fact that the integrity impact is rated as high (code execution) and that the patch is readily available elevates this to a priority remediation item despite the medium CVSS score. No evidence of active KEV listing or widespread exploit is indicated in the provided intelligence.

Exploit ScenarioDerived

A developer or operator with local access to an OpenClaw configuration file injects the environment variable NODE_OPTIONS='--require /tmp/malicious.js' into the env.vars configuration section. When the OpenClaw gateway service restarts (either manually or as part of an automated deployment), the injected variable is passed to the Node.js runtime without filtering, causing the gateway process to load and execute the attacker-controlled JavaScript module before the legitimate application code runs. This grants the attacker code execution with the full privileges of the OpenClaw service account, allowing data exfiltration, lateral movement, or service disruption.

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 – Mar 18, 2026

OpenClaw versions prior to 2026.2.21 contain an environment variable injection vulnerability that allows authenticated local attackers to execute arbitrary code at startup time by injecting dangerous process-control variables (such as NODE_OPTIONS or LD_*) through the configuration env.vars mechanism. An attacker with local privileges can manipulate the gateway service's runtime environment to achieve code execution in the service context, potentially compromising the entire OpenClaw deployment. A patch is available from the vendor, and this vulnerability has been documented by VulnCheck with supporting references to the GitHub security advisory and corresponding commit fix.

RemediationAI

Immediately upgrade OpenClaw to version 2026.2.21 or later, which includes the environment variable filtering patch (commit 2cdbadee1f8fcaa93302d7debbfc529e19868ea4). Until patching can be completed, restrict local system access to the OpenClaw configuration files and service runtime environment, implement least-privilege user accounts for the gateway service, and conduct a configuration audit to ensure no suspicious environment variable entries have been injected into existing configurations. Review all configuration sources (files, container environment, Kubernetes ConfigMaps, etc.) for unauthorized additions of process-control variables. For deployments that cannot be immediately patched, consider running OpenClaw in a restricted container environment with read-only filesystems and limited environment variable inheritance to reduce the blast radius of exploitation. Consult the vendor advisory at https://www.vulncheck.com/advisories/openclaw-environment-variable-injection-via-config-env-vars for additional context and validation steps.

Affected VersionsENISA

OpenClaw 0 <2026.2.21

Affected Packages

npm openclaw fix: 2026.2.21

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 an application gateway service (cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*) that processes configuration files containing environment variables. The vulnerability stems from a failure to implement proper input validation and filtering on environment variable names during the configuration parsing stage, which falls under CWE-15 (External Control of System or Configuration Setting). Process-control environment variables like NODE_OPTIONS (which can be used to load arbitrary Node.js modules), LD_PRELOAD, LD_LIBRARY_PATH, and similar variables allow attackers to influence how the application runtime initializes and loads code. Because these variables are evaluated at startup time before the application's main logic executes, sanitization must occur at configuration load time, not at runtime. The root cause is insufficient allowlisting or blacklisting of environment variable names when constructing the service's execution context.

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

NVD PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

2
Patch released
Mar 18, 2026 - 02:30 nvd
Patch available
CVE Published
Mar 18, 2026 - 01:34 nvd
MEDIUM 6.9

DescriptionCVE.org

OpenClaw versions prior to 2026.2.21 fail to filter dangerous process-control environment variables from config env.vars, allowing startup-time code execution. Attackers can inject variables like NODE_OPTIONS or LD_* through configuration to execute arbitrary code in the OpenClaw gateway service runtime context.

Executive ViewAI

Why It Matters

CVE-2026-22177 presents moderate security risk rated CVSS 6.1. Exploitation could compromise the security of affected deployments. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
6 sources
Confidence: High

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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Low

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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-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

CVE-2026-32049 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste

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