Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
endpoint-software-vulnerabilityinternet-facing-service-vulnerabilitywidely-deployed-product-advisory

Command Injection Flaws Expose OpenClaw and Anthropic Claude Code to RCE

Updated 3mo agoFirst seen Mar 31, 20263 sources

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.

Share:
Command Injection Flaws Expose OpenClaw and Anthropic Claude Code to RCE
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

4 events from the most recent confirmed update back to the earliest known activity.

4 EVENTS
Apr 6, 20263mo ago

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-35021 - Anthropic Claude Code & Agent SDK OS Command Injection via promptEditor.ts

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.

Mar 31, 20263mo ago

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.

Mar 13, 20263mo ago

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.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

8 LINKEDOpen in app
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Command Injection Flaws Expose OpenClaw and Anthropic Claude Code to RCE | Mallory