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. |
| Impact | The CVSS 3.1 score of 6.3 (Medium) with vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H indicates moderate overall risk with specific strengths and weaknesses. The local attack vector (AV:L) and high complexity (AC:H) reduce immediate exploitability, while the requirement for low privileges (PR:L) and lack of user interaction (UI:N) suggest that exploitation is feasible once a low-privileged account is compromised. The integrity and availability impacts are both high, meaning successful exploitation can corrupt system state or cause denial of service. Cross-referencing with KEV status shows this vulnerability is not currently listed as actively exploited in the wild, suggesting lower real-world priority than the CVSS score alone might imply. However, the presence of proof-of-concept code and public advisory increases future exploitation risk. The attack complexity being high (AC:H) is a mitigating factor—attackers must carefully craft conditions involving working directory manipulation, which is not trivial but feasible in multi-tenant or shared hosting environments. SSVC decision logic would classify this as having limited exploitability (requires local access and specific conditions) but high technical impact (integrity and availability), placing it in a moderate patch-soon priority tier rather than immediate critical status. |
| Exploit ScenarioDerived | An attacker with a low-privileged local account on a Windows system hosting OpenClaw creates a malicious .cmd or .bat file in a directory they control. When they trigger OpenClaw's wrapper resolution mechanism (through a legitimate application feature or API call) while their controlled directory is set as the current working directory, the vulnerability causes OpenClaw's fallback shell resolution to load and execute the attacker's malicious script instead of the intended wrapper, resulting in arbitrary command execution with OpenClaw's process privileges. This scenario is feasible in shared hosting environments, corporate networks with multiple users, or systems where local directory write access is granted to untrusted users, and the high complexity requirement means the attacker must carefully time the working directory manipulation to coincide with OpenClaw's wrapper resolution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 19, 2026
OpenClaw versions prior to 2026.3.1 contain a current working directory (cwd) injection vulnerability in Windows wrapper resolution for .cmd/.bat files that allows local attackers to manipulate command execution through directory control during shell fallback mechanisms. An authenticated local attacker with low privileges can exploit this vulnerability to achieve command execution integrity loss by controlling the working directory, potentially leading to unauthorized code execution or privilege escalation. While no active in-the-wild exploitation has been reported in KEV databases, the vulnerability is documented with a proof-of-concept available through the vendor's security advisory on GitHub.
RemediationAI
Upgrade OpenClaw to version 2026.3.1 or later immediately to patch the current working directory injection vulnerability. The vendor has released patched versions that properly sanitize cwd handling in wrapper resolution for .cmd/.bat files; consult the GitHub security advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-6f6j-wx9w-ff4j for detailed upgrade instructions specific to your deployment environment. Until patching is feasible, implement compensating controls by restricting local system access to trusted users only, isolating OpenClaw execution to dedicated non-shared directories with restricted permissions, and monitoring process execution logs for suspicious wrapper resolution behavior. On Windows systems, leverage AppLocker or similar mechanisms to restrict which processes can execute .cmd and .bat files, and enforce principle of least privilege for all accounts running OpenClaw services.
Affected VersionsENISA
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
The vulnerability stems from improper handling of shell execution fallback mechanisms when OpenClaw resolves .cmd and .bat file wrappers on Windows systems. The root cause is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command), which describes inadequate sanitization of user-controlled input before passing it to OS command execution functions. The affected technology involves OpenClaw's wrapper resolution system, which falls back to shell execution (.cmd/.bat handling) without properly validating or isolating the current working directory. When an attacker controls the cwd during this resolution phase, they can influence which files are loaded or executed, bypassing intended execution paths. This is specific to Windows environments where shell wrapper resolution differs from Unix-like systems, and the vulnerability is confirmed to affect OpenClaw (CPE: cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*) versions 2026.2.26 through versions prior to 2026.3.1.
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
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw versions 2026.2.26 prior to 2026.3.1 on Windows contain a current working directory injection vulnerability in wrapper resolution for .cmd/.bat files that allows attackers to influence execution behavior through cwd manipulation. Remote attackers can exploit improper shell execution fallback mechanisms to achieve command execution integrity loss by controlling the current working directory during wrapper resolution.
Blast Radius
ecosystem impact- 2 npm packages depend on openclaw (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.2.26.
Executive ViewAI
CVE-2026-31999 presents moderate security risk, a OS command injection vulnerability rated CVSS 6.3. Exploitation could allow attackers to execute code or inject malicious input. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Related Vulnerabilities in OpenClaw CWD and Execution Flaws
View all 2Auth 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
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
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
EUVD-2026-13037
GHSA-6f6j-wx9w-ff4j
NVD
CVE.org
EPSS
VulDB
Exploit-DB