Openclaw
CVE-2026-41298
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain read-scoped API credentials
-
DeliveryEnumerate active session keys via /sessions endpoint
-
ExploitSend POST request to /sessions/:sessionKey/kill
-
ExecutionAuthorization check fails to validate write scope
-
PersistSession terminated without proper authorization
-
ImpactSubagent pipeline disrupted
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must possess valid authentication credentials (API token or user account) with at least read-scope permissions granted in the platform's RBAC configuration. The target OpenClaw instance must be using identity-bearing HTTP authentication modes (e.g., Bearer token or API key authentication) rather than alternative authentication schemes. The attacker must know or be able to enumerate the sessionKey of an active subagent session-this is not a blocker, as session keys may be discoverable through legitimate read-scope API endpoints or exposed in logs. The vulnerability does NOT require administrative privileges, non-standard configuration, or user interaction; it exploits the authorization bypass in the default session termination endpoint. Exploitation is limited by the need for prior authentication and the ability to identify valid session keys, but these are weak constraints in most operational environments where read-only API access is granted to multiple integrations or developers. |
| Impact | CVSS score of 5.3 reflects a Medium severity but with mitigating factors: the attack requires prior authentication (PR:L), network access (AV:N), low complexity (AC:L), and causes limited impact (VC:L, VI:L). The CVSS vector indicates confidentiality and integrity impacts are low, suggesting session termination disrupts availability of subagent sessions rather than exposing sensitive data. However, the practical risk is context-dependent. Within multi-tenant environments or platforms where read-only API keys are distributed to developers or integrations, this becomes a high-risk privilege escalation vector - an attacker with a compromised read-only token can maliciously terminate production sessions, causing denial of service. The absence from CISA KEV and lack of public POC suggest this has not yet seen widespread active exploitation, but the straightforward nature of the exploit (sending a POST request with existing credentials) means weaponization risk is moderate if the vulnerability becomes widely known. Organizations relying on read-only API scopes as a security boundary should treat this as high priority. |
| Exploit ScenarioDerived | An attacker obtains a read-only API token from a compromised developer environment or legitimate third-party integration. Using only this token, the attacker crafts a POST request to https://openclaw.example.com/sessions/SESSIONKEY/kill, replacing SESSIONKEY with a known active session identifier (obtainable via the read-scoped /sessions endpoint). The request succeeds despite the token lacking write permissions, terminating the subagent session and disrupting dependent workflows. In a competitive or adversarial context, this could disrupt time-sensitive inference pipelines or batch processing jobs. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 21, 2026
OpenClaw before version 2026.4.2 fails to enforce write-scope authorization on the POST /sessions/:sessionKey/kill endpoint, allowing authenticated users with read-only credentials to terminate arbitrary subagent sessions. The vulnerability requires valid API credentials with read scope but does NOT require write permissions, enabling privilege escalation within identity-bearing authentication modes. No public exploit code has been identified, and this is not listed as actively exploited by CISA; however, the low CVSS score of 5.3 reflects the requirement for prior authentication rather than the ease of exploitation once credentials are obtained.
RemediationAI
Apply vendor-released patch by upgrading to OpenClaw version 2026.4.2 or later. This patch restores authorization scope enforcement on the POST /sessions/:sessionKey/kill endpoint, ensuring only authenticated users with explicit write permissions can terminate sessions. For organizations unable to immediately patch, implement network-level mitigations by restricting API access to trusted internal networks and auditing all API token assignments to remove unnecessary write-scope delegations - any API token or user with only read-scope access should be verified not to require session termination capabilities, reducing the attack surface. Additionally, enable detailed API audit logging on the /sessions/:sessionKey/kill endpoint to detect suspicious session termination attempts by read-scoped callers. These compensating controls do not eliminate the vulnerability but limit exposure until patching is feasible; they introduce no functional side effects if properly scoped to read-only credential holders who should not legitimately invoke this endpoint.
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
OpenClaw is an agent orchestration platform that uses role-based access control (RBAC) with granular scopes (read versus write) to restrict API endpoint access. The vulnerability exists in the session management subsystem, specifically the POST /sessions/:sessionKey/kill endpoint, which is intended to terminate running subagent sessions. The root cause is a missing or improperly implemented authorization check (CWE-862: Missing Authorization) that validates whether the authenticated caller possesses write-level permissions before allowing session termination. In identity-bearing HTTP authentication modes, the platform correctly identifies the caller but fails to enforce scope boundaries, creating an authorization bypass. The affected versions do not verify that PR:L (authenticated user) also holds the necessary privilege level to invoke destructive operations, allowing read-scoped API tokens or users to perform write-class actions.
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:N/AC:L/AT:N/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 before 2026.4.2 fails to enforce write scopes on the POST /sessions/:sessionKey/kill endpoint in identity-bearing HTTP modes. Read-scoped callers can terminate running subagent sessions by sending requests to this endpoint, bypassing authorization controls.
Blast Radius
ecosystem impact- 5 npm packages depend on openclaw (5 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.4.2.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
Related Vulnerabilities in OpenClaw Multiple Authorization and Security Flaws
View all 14Auth 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
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
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB