CVE-2026-35603: Claude Code: Insecure System-Wide Configuration Loading Enables Local Privilege Escalation on Windows
On Windows, Claude Code before 2.1.75 loaded system-wide settings from `C:\ProgramData\ClaudeCode\managed-settings.json` without checking who owned the directory. A low-privileged local user could plant a settings file that loads for every other user on the machine. Update `@anthropic-ai/claude-code` to 2.1.75 or later. Auto-update users already have the fix.
Published Apr 17, 2026 · Updated Apr 27, 2026 · Analysis Oct 29, 2026
What an attacker can do
Claude Code reads managed (system-wide) settings from a fixed path under ProgramData. By default, non-administrators can create folders in C:\ProgramData, and the ClaudeCode subdirectory was neither pre-created nor locked down. Claude Code did not check ownership or permissions before it trusted the file (CWE-426, untrusted search path).
So a standard user could create C:\ProgramData\ClaudeCode, drop in a managed-settings.json, and wait. The file is loaded for any user who launches Claude Code on that machine. Managed settings can carry hooks and permission rules, so a hostile file can define commands that run in the victim's session. The advisory does not list which settings an attacker would use, so I do not claim a specific payload.
The attacker needs a shared multi-user Windows system and a victim who starts Claude Code after the file is in place. That is why the CVSS vector is local with user interaction. Terminal servers, shared build machines and lab PCs are the realistic cases. A single-user laptop is not exposed in the way the advisory describes.
Who is affected
@anthropic-ai/claude-code on Windows, all versions before 2.1.75. The risk applies to machines with more than one local user. Check the version:
claude --versionor with npm:
npm ls -g @anthropic-ai/claude-codeAlso check whether C:\ProgramData\ClaudeCode exists and who can write to it.
@anthropic-ai/claude-code
- Ecosystem
- npm
- Affected
- < 2.1.75
- Fixed in
- 2.1.75
- Check
npm ls @anthropic-ai/claude-code
How to fix it
Update to 2.1.75 or later. The advisory says users on standard auto-update have received the fix, and users who update by hand should move to the latest version.
npm install -g @anthropic-ai/claude-code@latestThe advisory states no workaround. On a shared machine you can also create C:\ProgramData\ClaudeCode yourself and limit write access to administrators; that is my suggestion, not the advisory's, and it does not replace the update.
How to tell if you were hit
On shared Windows machines, check whether C:\ProgramData\ClaudeCode\managed-settings.json exists, who owns the folder and file, and when they were created. A folder owned by a standard user, or a managed settings file you did not deploy, is a red flag. Read the file for hooks or permission rules you do not recognize. Ask users whether they started Claude Code after the file's creation time. The advisory gives no other indicators.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
On Windows, Claude Code loaded 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.
Users on standard Claude Code auto-update have received this fix already. Users performing manual updates are advised to update to the latest version.
Thank you to hackerone.com/edbr for reporting this issue.
Questions
- Is Claude Code 2.1.75 affected by CVE-2026-35603?
No. 2.1.75 is the patched version. Versions before it are affected on Windows.
- Does this affect macOS or Linux?
The advisory describes only Windows and the
C:\ProgramData\ClaudeCodepath. It does not say other platforms are affected.- Does the attacker need administrator rights?
No. A low-privileged local user can create the directory because
ProgramDatais writable by non-administrators by default. A victim must then launch Claude Code.- Do I need to act if I use auto-update?
Anthropic says standard auto-update users already received the fix. Confirm with
claude --versionthat you are on 2.1.75 or later.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Claude Code vulnerabilities
All Claude Code entriesCVE-2026-88968
Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
high7.7Nov 9, 2026CVE-2026-86063
Claude Code: Plugin Hash Pin Bypass Allows Bypass of Hash Pinning
high7.5Oct 15, 2026CVE-2026-55607
Claude Code: Sandbox Escape via Git Worktree Path Confusion Allows Unsandboxed Code Execution
high7.7Jul 24, 2026CVE-2026-46406
@anthropic-ai/claude-code has an Insecure Temporary File in /copy Command that Enables Response Disclosure and Symlink-Based File Write
medium4.4Jun 25, 2026CVE-2026-54316
Claude Code: Out-of-Band Data Exfiltration via Pre-Approved HuggingFace Domain in WebFetch
medium9.1Jun 17, 2026CVE-2026-40068
Claude Code: Trust Dialog Bypass via Git Worktree Spoofing Allows Arbitrary Code Execution
high7.7Apr 24, 2026
