Close Menu
GeekPlanet

    Subscribe to Updates

    Be Geeky and subscribe to GeekPlanet for Technology, Security and Gadgets.

    What's Hot

    Tips to Secure Your Online Banking in India

    Android Privacy Controls You Should Enable Right Now

    Upcoming Budget Smartwatches in India This Quarter

    Facebook X (Twitter) Instagram
    • Privacy & Policy
    • Terms & Conditions
    • Contact US
    Facebook X (Twitter) Instagram YouTube
    GeekPlanetGeekPlanet
    AtlasVpn
    • Home
    • Gadgets
    • Entertainment
    • Cyber Security
    • How To’s & Guides
    • Reviews
    • Python
    GeekPlanet
    Home - Computer Tips & Tricks - Claude Code RCE Vulnerability Let Attackers Execute Commands on Developer Machines
    Computer Tips & Tricks

    Claude Code RCE Vulnerability Let Attackers Execute Commands on Developer Machines

    Geek PlanetBy Geek Planet3 Mins Read
    Facebook Twitter Pinterest LinkedIn Telegram Tumblr Email
    Claude Code AI coding assistant
    Picsum ID: 195
    Share
    Facebook Twitter LinkedIn Pinterest Email

    A remote code execution vulnerability in Anthropic’s Claude Code let attackers execute arbitrary commands on developer machines by crafting a malicious deeplink. The flaw, found in the eagerParseCliFlag function in main.tsx, affected version 2.1.118 and has since been patched.

    Developer workstation security vulnerability concept

    How the Exploit Works

    Security researcher Joernchen of 0day.click discovered the vulnerability while reviewing Claude Code’s source code. The issue lies in how the eagerParseCliFlag function handles command-line arguments. The function naively parsed the entire command line with any string starting with “–settings=…” rather than properly handling flags and their values.

    When combined with Claude Code’s deeplink handler for claude-cli://open URIs, an attacker could inject arbitrary settings into a spawned Claude Code instance. This included the ability to execute arbitrary commands via a “hooks” setting.

    The attack vector works like this: an attacker creates a specially crafted deeplink URL. If a developer clicks that link, Claude Code spawns with the attacker’s injected settings, including a SessionStart hook that runs automatically. No further user interaction is needed.

    Bypassing the Workspace Trust Dialog

    Even worse, the exploit bypassed the workspace trust dialog. If the “repo” parameter in the deeplink pointed to a repository the user had already cloned and trusted (such as anthropics/claude-code itself), execution happened without any warning prompts.

    Joernchen demonstrated the vulnerability by injecting a SessionStart hook via a crafted deep link on macOS. Once the target opens the link, Claude spawns as an independent agent running the attacker’s commands.

    Anthropic’s Fix

    Anthropic patched the vulnerability in version 2.1.118. The fix addresses the root cause: the pattern of using startsWith on the full command line array, which allowed flags to be injected into values. The patched version now parses command line flags and their arguments in full context, preventing this type of injection.

    Broader Implications for AI Coding Tools

    This is part of a growing pattern of security issues in AI development tools. Check Point Research previously identified three critical vulnerabilities in Claude Code related to its use of project-level configuration files, Hooks, Model Context Protocol (MCP) servers, and environment variables. Those vulnerabilities also enabled RCE and API token exfiltration.

    With 81% of developers now using AI coding tools according to a CodeSignal survey, the attack surface for these tools matters. A flaw in an AI coding assistant doesn’t just compromise one developer; it can compromise every codebase that assistant touches.

    Frequently Asked Questions

    What is the Claude Code RCE vulnerability?

    CVE-2026-39861 is a remote code execution flaw in Claude Code that let attackers inject arbitrary commands via crafted deeplinks. The vulnerability was in the eagerParseCliFlag function in version 2.1.118.

    How could an attacker exploit this vulnerability?

    An attacker could create a malicious claude-cli://open deeplink that, when clicked by a developer, spawns Claude Code with injected settings including a command execution hook. No further interaction is needed.

    Is Claude Code safe to use now?

    Anthropic has patched the vulnerability in version 2.1.118. Update Claude Code to the latest version immediately to ensure you are protected.

    Which other AI coding tools have had similar vulnerabilities?

    Check Point Research previously found three critical RCE vulnerabilities in Claude Code related to configuration files and MCP servers. Other AI tools like GitHub Copilot have also faced security scrutiny, though specific RCE vulnerabilities vary by tool.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Geek Planet
    • Website
    • Facebook
    • X (Twitter)
    • Instagram

    Hello, tech enthusiasts! I'm Devender, your guide through the ever-evolving world of technology. With a passion for innovation and a knack for breaking down complex concepts into digestible bits, I'm here to help you navigate the digital frontier.

    Related Posts

    Tips to Secure Your Online Banking in India

    Cyber Security: Latest Updates Every Tech User Should Know August 2026

    Tips to Secure Your Online Banking in India

    Securing Your Remote Desktop: Protecting Your Home Office

    Cyber Security Threats 2026: How Indian Users Should Protect Data

    Cyber Security Threats 2026: How Indian Users Should Protect Data

    Leave A Reply Cancel Reply

    Top Posts

    Tips to Secure Your Online Banking in India

    Data Structures and Their Functions in Python

    How do I edit a sent message on WhatsApp?

    Don't Miss

    Tips to Secure Your Online Banking in India

    Follow these expert tips to keep your bank accounts safe from hackers.

    Android Privacy Controls You Should Enable Right Now

    Upcoming Budget Smartwatches in India This Quarter

    Generative AI Tools Helping Indian Startups Scale Fast

    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    TPS4
    Most Popular

    Tips to Secure Your Online Banking in India

    Data Structures and Their Functions in Python

    How do I edit a sent message on WhatsApp?

    Our Picks

    Tips to Secure Your Online Banking in India

    Android Privacy Controls You Should Enable Right Now

    Upcoming Budget Smartwatches in India This Quarter

    Subscribe to Updates

    Be Geeky and subscribe to GeekPlanet for Technology, Security and Gadgets.

    Facebook X (Twitter) Instagram Pinterest
    © 2026 GeekPlanet.in Managed by MyAdsMantra Global.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    GeekPlanet is a safe place for every tech lover and is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.