GHSA-xww8-gqvh-92x9: OpenClaw: Exec approval display truncation could hide the command being approved
OpenClaw versions prior to 2026.5.18 have a vulnerability in the exec approval UI where very long commands are truncated in the display, potentially hiding the full command from the approver. This truncation can cause an approver to unknowingly approve a command with a hidden suffix that executes additional operations. The issue affects deployments with exec approval enabled and requires both an authenticated requester and an approver. The vulnerability compromises approval integrity but does not expose exec functionality to unauthenticated users or alter the local-first trust model. A fix is available in version 2026.5.18.
AI Analysis
Technical Summary
OpenClaw's exec approval mechanism truncates long commands in the approval UI, showing only a shortened prefix while retaining the full command for execution. This discrepancy allows an approver to approve a benign-looking command prefix while a hidden suffix executes additional shell operations after approval. The vulnerability affects configurations where exec approval is enabled and an authenticated user can submit long exec requests. It does not grant exec access to unauthenticated users nor change the trust model. The issue is an approval integrity flaw, potentially leading to unintended command execution. The vulnerability is patched in OpenClaw version 2026.5.18.
Potential Impact
An attacker who can submit long exec commands and an approver who reviews these commands may be misled by the truncated display, approving commands that contain hidden malicious suffixes. This can lead to execution of unintended shell operations with the privileges of the approver. The severity is high due to the potential for command execution with elevated privileges, but exploitation requires both an authenticated requester and an approver, limiting the attack surface.
Mitigation Recommendations
Upgrade OpenClaw to version 2026.5.18 or later, where this truncation issue is fixed. Until upgrading, avoid approving unusually long exec commands and restrict approval capabilities to trusted operators only.
GHSA-xww8-gqvh-92x9: OpenClaw: Exec approval display truncation could hide the command being approved
Description
OpenClaw versions prior to 2026.5.18 have a vulnerability in the exec approval UI where very long commands are truncated in the display, potentially hiding the full command from the approver. This truncation can cause an approver to unknowingly approve a command with a hidden suffix that executes additional operations. The issue affects deployments with exec approval enabled and requires both an authenticated requester and an approver. The vulnerability compromises approval integrity but does not expose exec functionality to unauthenticated users or alter the local-first trust model. A fix is available in version 2026.5.18.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenClaw's exec approval mechanism truncates long commands in the approval UI, showing only a shortened prefix while retaining the full command for execution. This discrepancy allows an approver to approve a benign-looking command prefix while a hidden suffix executes additional shell operations after approval. The vulnerability affects configurations where exec approval is enabled and an authenticated user can submit long exec requests. It does not grant exec access to unauthenticated users nor change the trust model. The issue is an approval integrity flaw, potentially leading to unintended command execution. The vulnerability is patched in OpenClaw version 2026.5.18.
Potential Impact
An attacker who can submit long exec commands and an approver who reviews these commands may be misled by the truncated display, approving commands that contain hidden malicious suffixes. This can lead to execution of unintended shell operations with the privileges of the approver. The severity is high due to the potential for command execution with elevated privileges, but exploitation requires both an authenticated requester and an approver, limiting the attack surface.
Mitigation Recommendations
Upgrade OpenClaw to version 2026.5.18 or later, where this truncation issue is fixed. Until upgrading, avoid approving unusually long exec commands and restrict approval capabilities to trusted operators only.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-xww8-gqvh-92x9
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a46ecd427e9c7971943f39e
Added to database: 07/02/2026, 22:57:24 UTC
Last enriched: 07/02/2026, 23:22:15 UTC
Last updated: 07/02/2026, 23:22:15 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.