Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCreate ProgramData\ClaudeCode directory
-
DeliveryWrite malicious managed-settings.json
-
ExploitWait for victim to launch Claude Code
-
ExecutionClaude Code loads untrusted configuration
-
ImpactArbitrary code executes with victim's privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
|
| Exploitation Conditions | Exploitation requires a multi-user Windows system with ProgramData configured with default permissions (writable by non-administrative users), a local non-administrative attacker account, and critically, a victim user launching Claude Code after the malicious configuration is placed. The C:\ProgramData\ClaudeCode subdirectory must not already exist or must be writable by the attacker (true by default since parent directory is writable). The vulnerability does NOT affect single-user systems, Windows installations with hardened ProgramData permissions, or systems where no users launch Claude Code after the attack. The requirement for user interaction (UI:P: victim must launch the tool) and specific timing (attack window closes if Claude Code is not executed, or if administrators immediately repair permissions) significantly limits real-world exploitability compared to network-based or no-interaction attacks. |
| Impact | This is a moderate-severity local privilege escalation with real but limited practical impact. The CVSS score of 5.4 reflects the combination of high confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H) offset by local attack vector and requirement for user interaction. The attack is reliable (AC:L) but requires three specific conditions: (1) a multi-user Windows system, (2) a local non-administrative attacker account, and (3) a victim user launching Claude Code after the malicious file is placed. This is NOT a network exploitation path and cannot affect single-user machines or systems where Claude Code is not used. EPSS data is not provided, but the combination of low attack frequency (multi-user systems with Claude Code), user interaction requirement, and patch availability (version 2.1.75) suggests this poses lower real-world risk than the CVSS score alone indicates. However, on shared development or lab systems where Claude Code is widely used, the attack surface is material. No public exploit code or active exploitation is mentioned, further reducing immediacy. |
| Exploit ScenarioDerived | On a shared Windows development machine, an attacker with a standard user account creates the C:\ProgramData\ClaudeCode directory and places a malicious managed-settings.json containing commands that run with the privileges of whoever launches Claude Code next. When a developer or colleague (potentially with higher privileges) launches Claude Code, the application automatically loads and executes the attacker's configuration, granting code execution in that user's context. This could be used to steal credentials, install backdoors, or access sensitive development assets. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 17, 2026
Claude Code prior to version 2.1.75 on Windows allows low-privileged local users to execute arbitrary code by placing a malicious configuration file in an unprotected shared directory (C:\ProgramData\ClaudeCode\managed-settings.json). The vulnerability exploits the default writability of ProgramData to non-administrative users and the absence of directory ownership validation, enabling privilege escalation or lateral impact when a victim user subsequently launches the application. This requires local system access and user interaction (launching Claude Code), limiting real-world impact to shared multi-user systems.
RemediationAI
The primary fix is to upgrade Claude Code to version 2.1.75 or later on all affected Windows systems. Users should ensure they run the latest version from the official Anthropics distribution channels and verify the update applies to their Windows installation. No workarounds are documented for pre-2.1.75 versions; however, as a compensating control on shared systems, administrators can manually create the C:\ProgramData\ClaudeCode directory with restricted ACLs (modifiable only by SYSTEM and Administrators) before users launch Claude Code, preventing non-administrative users from placing malicious configuration files. This control has the trade-off of requiring pre-deployment steps and ongoing verification. Alternatively, restricting write access to ProgramData itself (via Group Policy) is effective but may break other applications expecting standard ProgramData permissions. See https://github.com/anthropics/claude-code/security/advisories/GHSA-5cwg-9f6j-9jvx for patch confirmation and installation guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Claude Code is an agentic development tool that loads system-wide configuration from a fixed path in ProgramData, a shared Windows directory intended for application data accessible to all users. The root cause (CWE-426: Untrusted Search Path) stems from loading configuration without verifying that the containing directory is owned and controlled by trusted entities. By default, ProgramData allows write access to non-administrative accounts, and Claude Code did not pre-create the ClaudeCode subdirectory with restricted permissions. An attacker can create this directory and place a malicious managed-settings.json, which Claude Code then loads without ownership validation. The CVSS vector (AV:L/AC:L/PR:L) confirms this is a local privilege escalation requiring low-privilege account access and low attack complexity, though AT:P (attack timing requiring user interaction) and UI:P (user must launch the tool) constrain exploitability.
Know when Claude Code gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
Claude Code is an agentic coding tool. In versions prior to 2.1.75 on Windows, Claude Code loaded the system-wide default configuration from C:\ProgramData\ClaudeCode\managed-settings.json without validating directory ownership or access permissions. Because the ProgramData directory is writable by non-administrative users by default and the ClaudeCode subdirectory was not pre-created or access-restricted, a low-privileged local user could create this directory and place a malicious configuration file that would be automatically loaded for any user launching Claude Code on the same machine. Exploiting this would have required a shared multi-user Windows system and a victim user to launch Claude Code after the malicious configuration was placed. This issue has been fixed on version 2.1.75.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Claude Code
View allOS command injection in Anthropic Claude Code CLI and Agent SDK for Python allows remote, unauthenticated attackers to e
Code injection in Anthropic's Claude Code CLI before version 1.0.111 allows malicious code embedded in a project directo
OS command injection in Anthropic Claude Code CLI and Claude Agent SDK for Python allows local attackers to execute arbi
OS command injection in Anthropic Claude Code CLI and Claude Agent SDK for Python enables arbitrary command execution vi
Sandbox escape in Claude Code versions prior to 2.1.64 enables arbitrary file writes outside the workspace by exploiting
Claude Code prior to version 2.1.2 has a CVSS 10.0 sandbox escape in the bubblewrap sandboxing mechanism, allowing code
Claude Code is an agentic coding tool. Prior to 1.0.93, Due to errors in parsing shell commands related to $IFS and shor
Claude Code prior to version 2.0.57 failed to properly validate MCP tool inputs, allowing malicious MCP servers to injec
Claude Code versions before 2.0.72 allow authenticated attackers to execute arbitrary commands by exploiting a command p
Claude Code is an agentic coding tool. Rated high severity (CVSS 8.7), this vulnerability is remotely exploitable, no au
Sandbox escape and code execution in Anthropic's Claude Code CLI (versions 2.1.38 through 2.1.162) lets a malicious repo
Claude Code is an agentic coding tool. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no au
EUVD-2026-23520
GHSA-5cwg-9f6j-9jvx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB