Skip to main content

Openclaw cli: OpenClaw: system.run allow-always persistence included shell-commented payload tails

0
Medium
Published: 08/13/2026 (08/13/2026, 17:21:32 UTC)
Source: GCVE Database
Product: openclaw-cli

Description

OpenClaw CLI versions up to 2026.3.2 have a vulnerability in the system.run allowlist persistence logic where shell comment semantics were not properly honored. This allowed non-executed command tails following unquoted '#' characters to be stored as trusted commands, potentially leading to unintended allowlist persistence. The issue was fixed in version 2026.3.7 by improving shell tokenization to correctly handle unquoted shell comments.

CVSS v3.1

Score 5.0medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
>=2026.1.29 <2026.3.7

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

AILast updated: 10/04/2026, 12:32:04 UTC

Technical Analysis

OpenClaw's system.run allowlist persistence mechanism failed to respect POSIX shell comment semantics when analyzing commands for allow-always persistence. Specifically, if a shell command included an unquoted '#' character, the runtime shell would treat the remainder of the line as a comment and not execute it, but the allowlist persistence logic would still analyze and store the commented-out tail as a trusted follow-up command. This discrepancy could allow an attacker with limited privileges to submit commands that appear safe but have appended payloads that are incorrectly trusted by the allowlist. The vulnerability affects openclaw CLI versions up to 2026.3.2 and was fixed in version 2026.3.7 by enhancing shell tokenization and chain/pipeline analysis to stop at unquoted shell comments, ensuring only executable commands are persisted.

Potential Impact

An attacker operating in security=allowlist mode could exploit this flaw to have non-executed command tails stored as trusted allow-always persistence entries. This could lead to unintended command execution or persistence of malicious commands under the allowlist, potentially impacting confidentiality, integrity, and availability to a limited extent. The CVSS score of 5.0 (medium severity) reflects the moderate impact with network attack vector, high attack complexity, low privileges required, and no user interaction needed.

Mitigation Recommendations

A fix is available in openclaw CLI version 2026.3.7 and later. Users should upgrade to version 2026.3.7 or newer to ensure proper handling of shell comments in allow-always persistence. No additional mitigation is required as the vendor has officially fixed the issue.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-openclaw-cli-GHSA-9q2p-vc84-2rwm
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6ac2458712601ec6a3164092

Added to database: 10/04/2026, 12:24:39 UTC

Last enriched: 10/04/2026, 12:32:04 UTC

Last updated: 10/04/2026, 12:32:04 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses