Command Injection Flaws Expose OpenClaw and Anthropic Claude Code to RCE
Two high-severity command injection vulnerabilities have been disclosed in developer tooling and automation software, enabling arbitrary command execution through improperly sanitized shell inputs. CVE-2026-32917 affects OpenClaw versions earlier than 2026.3.13, where the iMessage attachment staging workflow passes unsanitized remote attachment paths directly into an SCP remote operand. If remote attachment staging is enabled, an unauthenticated attacker can use shell metacharacters in attachment paths to execute commands on configured remote hosts; the flaw is tracked as CWE-78 and carries a CVSS v3.1 rating of AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
A separate issue, CVE-2026-35020, impacts Anthropic Claude Code CLI and the Claude Agent SDK, where attacker-controlled input from the TERMINAL environment variable can reach /bin/sh with shell=true through the command lookup helper and deep-link terminal launcher. A local attacker can exploit the bug during normal CLI use or via the deep-link handler to run arbitrary commands with the privileges of the invoking user. Both disclosures highlight continued risk from unsanitized shell metacharacters in application workflows, with OpenClaw publishing a fixing commit and security advisory alongside third-party vulnerability reporting.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
4 events from the most recent confirmed update back to the earliest known activity.
CVE-2026-35021 publicly disclosed
CVE-2026-35021 was disclosed as a high-severity OS command injection vulnerability affecting Anthropic Claude Code CLI and the Claude Agent SDK. The flaw in the prompt editor invocation utility allowed malicious file paths containing shell metacharacters such as $() or backticks to trigger arbitrary command execution via execSync as the local user.
CVE-2026-35020 publicly disclosed
CVE-2026-35020 was disclosed as a high-severity OS command injection vulnerability affecting Anthropic Claude Code CLI and the Claude Agent SDK. The flaw involved attacker-controlled input from the TERMINAL environment variable being passed to /bin/sh with shell=true, enabling arbitrary command execution as the local user.
CVE-2026-32917 publicly disclosed
CVE-2026-32917 was publicly disclosed as a high-severity remote command injection vulnerability affecting OpenClaw versions before 2026.3.13. The issue was classified as CWE-78 and described as allowing arbitrary command execution when remote attachment staging is enabled.
OpenClaw fixes remote command injection in version 2026.3.13
OpenClaw addressed CVE-2026-32917 in release 2026.3.13, fixing a flaw in iMessage attachment staging where unsanitized attachment paths were passed to SCP and could enable remote command execution on configured hosts.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
3 references tracked. Mallory keeps watching after this page renders.
CVE-2026-35020 - Anthropic Claude Code & Agent SDK OS Command Injection via TERMINAL Environment Variable
cvefeed.io
Open sourceCVE-2026-35021 - Anthropic Claude Code & Agent SDK OS Command Injection via promptEditor.ts
cvefeed.io
Open sourceCVE-2026-32917 - OpenClaw < 2026.3.13 - Remote Command Injection via Unsanitized iMessage Attachment Paths in SCP
cvefeed.io
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


