Skip to content
Submit incident
AII-1001-11549
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

Shell injection vulnerability in OpenClaw macOS keychain credential write

OpenClaw's Claude CLI contained a shell injection vulnerability in the macOS keychain credential refresh feature where user-controlled OAuth tokens could execute arbitrary commands. The flaw was patched by using direct process execution instead of shell command construction.

14 February 2026 Β· OpenClaw Β· Security and cyberattacks
14 February 2026
AII-1001-11549View source β†—
Quick facts
Organization
OpenClaw (subject)
Category
Security and cyberattacks
Country
United States
Source
github.com
Date
14 February 2026
Drafted by
Raidu Incident Detection

What happened

The Claude CLI keychain credential refresh path on macOS constructed a shell command to write updated JSON OAuth tokens into Keychain via 'security add-generic-password -w ...' using execSync with single-quote escaping of user-controlled data.

The single-quote escaping was insufficient to prevent shell injection because command substitution using $() or backtick expansion would be processed by the shell before quote evaluation, allowing arbitrary command execution.

Index analysis

The vulnerability was classified as High severity with CVSS score 7.6, requiring low privileges and user interaction, affecting confidentiality and integrity.

An attacker with control over an OAuth token response could execute arbitrary commands as the gateway user by injecting command substitution payloads that bypass the single-quote protection.

Governance controls

The fix replaced execSync with execFileSync to spawn the security binary directly, passing arguments as an array that are never shell-parsed, eliminating the need for quote escaping.

Regression test coverage was added to ensure shell metacharacters remain literal arguments, and new tests were created for both $() command substitution and backtick expansion payloads.

Classification

Organization
OpenClaw (subject)
Category
Security and cyberattacks
Country
United States
Harm status
Potential harm
Intent
Unintentional
Timing
Post-deployment
Consequences
None recorded
AI systems
OpenClaw Claude CLI

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

github.com
https://github.com/openclaw/openclaw/security/advisories/GHSA-4564-pvr2-qq4h
Aug 2026Claude AI agent discovers gym booking system vulnerability, cancels another user's reservationWell documentedSecurity and cyberattacksThe IndependentDiaspora Digital Media (DDM News) - Nigeria Breaking News, Africa and World News and Updates -The Indian Express+3Jun 2026Five malicious skills removed from OpenClaw ClawHub marketplaceConfirmedSecurity and cyberattacksUnit42Dark ReadingJun 2026OpenClaw AI agent vulnerabilities enable malicious skill packages to steal user dataUnder investigationSecurity and cyberattacksenglish.news.cnChina NewsApr 2026AI Agent Exploited Gym Booking API Authorization Flaw and Removed Member From WaitlistReportedSecurity and cyberattacksabc.net.auaffinda.comApr 2026Open-source AI agents expose security vulnerabilities in ChinaReportedSecurity and cyberattacksδΈœζ–Ήθ΄’ε―Œη½‘China News