Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2021 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Impact | While the CVSS v3.1 score of 6.0 may appear moderate, multiple factors indicate elevated real-world risk: the attack vector is local with high complexity (AC:H) and requires low privileges (PR:L) with user interaction (UI:R), yet impacts confidentiality and integrity with high severity (C:H/I:H). The vulnerability is automatable—an attacker can repeatedly modify PATH and trigger race conditions—making it practically exploitable despite the high complexity rating. The core issue is architectural: approval workflows that don't bind to absolute executables create a false sense of security. Organizations relying on OpenClaw's approval system for privilege boundaries should treat this as a critical security control bypass rather than a simple privilege escalation. The presence of a GitHub security advisory and coverage from VulnCheck indicates active awareness in the security community. Without confirmed KEV status or public POC, the current risk is elevated but not yet in active widespread exploitation phase. |
| Exploit ScenarioDerived | A system administrator approves an OpenClaw policy allowing the 'backup' command to run with elevated privileges. An attacker with local user access creates a malicious 'backup' script in a world-writable directory (/tmp), then modifies the PATH to prepend /tmp before the legitimate backup tool's location. When the approved backup task executes after the administrator's approval window, PATH resolution finds the attacker's malicious script first and executes it with the elevated privileges originally granted for the legitimate backup command. The attacker gains arbitrary command execution within the security boundary that the approval system was intended to protect. While the AC:H (high complexity) rating suggests this is difficult, the attack becomes practical when combined with timing attacks, predictable execution schedules, or social engineering to influence when approvals execute. |
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 post-approval executable rebind vulnerability in the system.run approval mechanism that fails to pin executable identity when argv[0] is not a full path. An attacker with local access and low privileges can modify PATH environment variables after an operator approves a command execution to redirect the approval to execute a different binary, achieving arbitrary command execution with the privileges of the OpenClaw process. The vulnerability has a moderate CVSS score of 6.0 reflecting local attack vector and high privilege requirements, but poses significant risk in environments where approval workflows are relied upon for security boundaries.
RemediationAI
Immediately upgrade OpenClaw to version 2026.3.1 or later, which implements executable identity pinning at approval time for all argv[0] tokens regardless of path qualification. Follow the patching guidance in the official GitHub security advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-q399-23r3-hfx4. As an interim mitigation for organizations unable to patch immediately, restrict the PATH environment variable to a minimal set of system directories owned and protected by root, implement filesystem monitoring to detect unauthorized modifications to directories in PATH, and enforce strict file permissions (mode 0755 or more restrictive) on all executable locations referenced by OpenClaw approvals. Additionally, audit existing approval policies to ensure all critical commands use fully-qualified paths (/usr/bin/command format) to defeat PATH-based attacks. Organizations should also review access controls limiting which users can modify environment variables in the OpenClaw execution context.
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 CWE-367 (Time-of-check Time-of-use Race Condition) in OpenClaw's system.run approval workflow. When an operator approves command execution with a non-fully-qualified executable name (e.g., 'mycommand' instead of '/usr/bin/mycommand'), OpenClaw fails to resolve and pin the absolute executable identity at approval time. Instead, the actual binary resolution occurs at execution time via standard PATH lookup. This creates a race window where an attacker can modify PATH environment variables between approval and execution, causing the system to execute a malicious binary placed in an attacker-controlled directory that appears earlier in the modified PATH. The affected product OpenClaw (cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*) implements an approval-based security model that is fundamentally bypassed by this design flaw.
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:R/S:U/C:H/I:H/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw versions prior to 2026.3.1 fail to pin executable identity for non-path-like argv[0] tokens in system.run approvals, allowing post-approval executable rebind attacks. Attackers can modify PATH resolution after approval to execute a different binary than the operator approved, enabling arbitrary command execution.
Executive ViewAI
CVE-2026-31997 presents moderate security risk rated CVSS 6.0. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.
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.
Related Vulnerabilities in OpenClaw File Operation Vulnerabilities
View all 3Auth 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-13033
GHSA-q399-23r3-hfx4
NVD
CVE.org
EPSS
VulDB
Exploit-DB