Skip to main content

Openclaw EUVDEUVD-2026-13958

| CVE-2026-32056 HIGH
OS Command Injection (CWE-78)
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to OpenClaw system
  2. Delivery
    Set malicious HOME or ZDOTDIR environment variables
  3. Exploit
    Create .bash_profile or .zshenv with arbitrary commands
  4. Execution
    Trigger system.run function
  5. Impact
    Execute injected code before allowlist validation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

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 to OpenClaw versions prior to 2026.2.22. Attacker must have low-privilege user credentials and ability to control HOME or ZDOTDIR environment variables before invoking system.run function. Victim interaction not required. Exploits unsanitized shell startup files (.bash_profile, .zshenv) to bypass command allowlist.

Impact

This vulnerability presents moderate to high real-world risk with a CVSS score of 7.5. The CVSS vector CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H indicates network-based exploitation with high attack complexity requiring low privileges and no user interaction, enabling complete compromise of confidentiality, integrity, and availability. The high attack complexity (AC:H) suggests exploitation requires specific conditions such as access to vulnerable system.run invocations with attacker-controlled inputs, which somewhat limits the attack surface. The vulnerability enables complete arbitrary code execution before allowlist validation, making it particularly dangerous in environments where OpenClaw is used to provide restricted command execution capabilities. The availability of a vendor patch and the existence of detailed advisories from VulnCheck and GitHub Security Advisories indicate this is a confirmed, actively tracked vulnerability that should be prioritized for patching, especially in internet-facing deployments or multi-tenant environments where low-privilege users could escalate privileges.

Exploit ScenarioDerived

An authenticated attacker with low-level privileges gains network access to an OpenClaw instance and identifies functionality that invokes the vulnerable system.run function. The attacker crafts a request that sets the HOME environment variable to point to an attacker-controlled directory (potentially a web-accessible or shared filesystem location) containing a malicious .bash_profile file with reverse shell code. When system.run spawns a shell process, the shell reads and executes the attacker's startup file before any allowlisted command runs, granting the attacker arbitrary code execution with the privileges of the OpenClaw process, effectively bypassing all command restrictions.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 21, 2026

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run function that allows attackers to bypass command allowlist protections. Authenticated remote attackers with low privileges can inject malicious shell startup files (.bash_profile, .zshenv) via unsanitized HOME and ZDOTDIR variables to achieve arbitrary code execution before allowlisted commands execute. A patch is available from the vendor via GitHub commit c2c7114ed39a547ab6276e1e933029b9530ee906.

RemediationAI

Upgrade OpenClaw to version 2026.2.22 or later, which contains the fix for environment variable sanitization in the system.run function (see patch at https://github.com/openclaw/openclaw/commit/c2c7114ed39a547ab6276e1e933029b9530ee906 and security advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-xgf2-vxv2-rrmg). Until patching is complete, implement compensating controls such as restricting network access to OpenClaw instances to trusted IP ranges only, limiting user privileges to minimize the pool of potential attackers who meet the PR:L requirement, and if possible, avoiding the system.run function entirely or implementing additional input validation that blocks manipulation of HOME and ZDOTDIR variables. Review logs for suspicious environment variable manipulation attempts targeting shell startup file paths.

Affected VersionsENISA

OpenClaw 0 <2026.2.22

Affected Packages

npm openclaw fix: 2026.2.22

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

The vulnerability affects OpenClaw (cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*), specifically the system.run function which executes shell commands. This is a classic CWE-78 (Improper Neutralization of Special Elements used in an OS Command) vulnerability where shell environment variables HOME and ZDOTDIR are not sanitized before spawning shell processes. Unix shells read configuration files from paths specified by these variables during startup, executing any code within them before the actual command runs. By controlling these variables, attackers can point the shell to attacker-controlled directories containing malicious .bash_profile, .bashrc, .zshenv, or similar startup files, effectively bypassing any command allowlist checks that only examine the command string itself.

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 7.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
PoC Detected
Mar 23, 2026 - 18:59 vuln.today
Public exploit code
Patch released
Mar 21, 2026 - 01:00 nvd
Patch available
CVE Published
Mar 21, 2026 - 00:42 nvd
HIGH 7.5

DescriptionCVE.org

OpenClaw versions prior to 2026.2.22 fail to sanitize shell startup environment variables HOME and ZDOTDIR in the system.run function, allowing attackers to bypass command allowlist protections. Remote attackers can inject malicious startup files such as .bash_profile or .zshenv to achieve arbitrary code execution before allowlist-evaluated commands are executed.

Executive ViewAI

Why It Matters

OpenClaw systems running versions prior to 2026.2.22 are vulnerable to privilege escalation attacks where authenticated users can execute arbitrary code by manipulating shell environment variables. This affects any organization using OpenClaw for critical infrastructure, application deployment, or system automation, potentially compromising system integrity and data security.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 64% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

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

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