Skip to main content

Openclaw EUVDEUVD-2026-13033

| CVE-2026-31997 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-03-19 VulnCheck GHSA-q399-23r3-hfx4
6.0
CVSS 3.1 · NVD
View

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.

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 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

OpenClaw 0 <2026.3.1

Affected Packages

npm openclaw fix: 2026.3.1

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

NVD PRIMARY 6.0 MEDIUM
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

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

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Mar 19, 2026 - 01:00 nvd
MEDIUM 6.0

DescriptionCVE.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

Why It Matters

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.

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 99% 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

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

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 3
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-44118 HIGH POC
8.5 May 06

Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev

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

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