Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V14 - Configuration Dependency management, component inventory
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 v3.1 vector (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N) indicates low-to-moderate severity: attack vector is local only, attack complexity is high, and the attacker requires low privileges (PR:L). The impact is limited to confidentiality and integrity (reading or writing files) with no availability impact. This signals a real but constrained threat. The vulnerability requires both local access and prior command execution capability, making it a lateral privilege escalation or sandbox-escape vector rather than a remote entry point. A patch is available from the vendor (commit 2c05cbb43e48ebad03626d3125746fb1b9a8520f) as of version 2026.2.19, indicating the vendor has responded swiftly. Without EPSS score or KEV inclusion data provided, the exploitation probability appears moderate; the vulnerability is technically straightforward to exploit for an already-local attacker but not remotely exploitable. This is a real priority for organizations using OpenClaw in security-sensitive contexts (CI/CD pipelines, sandboxed execution, restricted shells) but lower priority for general deployments. |
| Exploit ScenarioDerived | An attacker with local shell access to a system running OpenClaw (for example, a compromised CI/CD pipeline user or insider) invokes a legitimate OpenClaw function expecting stdin-only operation on the sort utility. Instead, the attacker appends the -o /etc/cron.d/backdoor flag to the sort command, causing it to write a cron job file to a privileged location, or uses grep -R /root/.ssh to recursively read sensitive SSH keys despite safeBins restrictions. Because input validation is missing, the flag passes through to the underlying sort or grep process, which executes the filesystem operation as intended by the attacker. The attack requires local access and existing command-execution privileges (AC:H, PR:L in CVSS terms), but enables lateral privilege escalation or data exfiltration within the host. |
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.2.19 contain an input validation bypass in the tools.exec.safeBins component that allows local attackers with command execution privileges to circumvent stdin-only restrictions and perform arbitrary filesystem operations. By exploiting sort output flags (specifically the -o flag for arbitrary file writes) or recursive grep flags (-R for recursive file reads), authenticated attackers can read sensitive files or overwrite critical files despite intended access controls. While the CVSS score of 3.6 is moderate and requires local access with low privileges, the vulnerability represents a privilege escalation or sandbox escape technique rather than a critical remote exploit.
RemediationAI
Immediately upgrade OpenClaw to version 2026.2.19 or later, which includes the fix committed at https://github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f. This patch adds proper input validation to reject dangerous command-line flags (sort -o, grep -R, and similar filesystem-modifying flags) before execution. Organizations unable to patch immediately should restrict command execution access within OpenClaw to highly trusted users only, disable or sandbox the tools.exec.safeBins component if unused, and implement host-level file access controls (read-only mounts, SELinux/AppArmor policies) to limit the blast radius of potential flag-injection attacks. Monitor OpenClaw activity logs for suspicious sort or grep invocations with output redirection flags.
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 exists in OpenClaw's safeBins execution wrapper (a security-conscious command execution abstraction), which attempts to restrict command-line tools to stdin-only operation to prevent unintended filesystem side effects. However, the input validation logic fails to sanitize dangerous command-line flags specific to GNU utilities. The sort command's -o (output file) flag and grep's -R (recursive directory traversal) flag are not properly blocked, allowing attackers to bypass the intended restriction model. This is classified under CWE-78 (Improper Neutralization of Special Elements used in an OS Command, aka OS Command Injection), though technically it is a flag injection rather than full command injection. The affected product OpenClaw (CPE: cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*) is an application security or development tool that depends on safe command execution for sandboxing or restricted execution environments.
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:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw versions prior to 2026.2.19 tools.exec.safeBins contains an input validation bypass vulnerability that allows attackers to execute unintended filesystem operations through sort output flags or recursive grep flags. Attackers with command execution access can leverage sort -o flag for arbitrary file writes or grep -R flag for recursive file reads, circumventing intended stdin-only restrictions.
Executive ViewAI
CVE-2026-31996 is a low-severity vulnerability in OpenClaw versions prior to 2026.2.19 tools.exec.safeBins (CVSS 2.0). The limited severity suggests constrained impact, typically requiring specific conditions or local access for exploitation. A patch is available and can be applied during standard maintenance windows.
Apply vendor patch during routine maintenance. Standard security controls provide adequate interim protection.
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 Command Injection Vulnerabilities
View all 5Auth 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-13031
GHSA-4685-c5cp-vp95
NVD
CVE.org
EPSS
VulDB
Exploit-DB