STUPID-2026-0090
Claude Code loaded managed config from a world-writable Windows path, enabling local privilege escalation (CVE-2026-35603)
Why 6/10
Local privilege escalation on shared Windows machines only. Fixed; no exploitation reported.
- Scope
- 2/4
- One project, repository, server or service, or a cost above roughly $10,000
- Recoverability
- 3/3
- Permanently lost or irreversible, including data that was exposed
- Did it happen
- 1/2
- Demonstrated (proof of concept, reproduction, controlled test or near-miss) with no real victim reported
- Beyond the user
- 0/1
- Only the user's own non-production work
The score is the sum of these four factors. How each factor is scored · scored 2026-10-29
Instruction given
N/A — this is a flaw in Claude Code's own startup configuration loading on Windows, not a task given to the agent by a user.
Expected behavior
System-wide managed settings should load only from an admin-controlled, write-protected location, so an unprivileged local user cannot influence what configuration or hooks execute in another user's session.
Actual behavior
Claude Code loaded managed-settings.json from C:\ProgramData\ClaudeCode without checking directory ownership or permissions. Because ProgramData is writable by non-administrative users by default and the ClaudeCode subdirectory did not exist or was not access-restricted, any low-privileged local user could create it and drop a malicious config containing a session-start hook.
Damage
On a shared multi-user Windows machine, a standard user could plant a config that auto-ran an attacker-controlled hook under any other user's context the next time that user launched Claude Code — full local privilege escalation (CWE-426: Untrusted Search Path), rated CVSS v4.0 5.4 (Moderate). No in-the-wild exploitation was reported. Fixed in Claude Code 2.1.75, which relocated managed settings to a write-protected Program Files path; Anthropic pre-notified enterprise customers since the move changed where admins must place managed config.
Full write-up
Security researcher edbr (via HackerOne) reported that Claude Code on Windows loaded its system-wide managed-settings.json from C:\ProgramData\ClaudeCode without validating who owned or could write to that directory. Since ProgramData is writable by standard users by default, a low-privileged account on a shared machine could pre-create the ClaudeCode subdirectory, plant a config with a malicious session-start hook, and have it silently execute in the context of any other user who later launched Claude Code on that machine — a textbook untrusted-search-path privilege escalation (CWE-426). Anthropic assigned CVE-2026-35603, rated it Moderate (CVSS v4.0 5.4), and fixed it in version 2.1.75 by moving managed settings to a write-protected location under Program Files, giving enterprise deployments advance notice since the relocation changed where admins must place their managed config files.
Classification
- Agent
- Claude Code
- Failure mode
- Security Vulnerability
- Root cause
- Other
- Domain
- Security
- OWASP Agentic Top 10 (our mapping)
- ASI03 Identity and Privilege Abuse list
- MIT AI Risk Repository (our mapping)
- 2.2 AI system security vulnerabilities and attacks taxonomy
- Source
- Security Research
Related incidents
Cite this record
StupidLLM. "STUPID-2026-0090: Claude Code loaded managed config from a world-writable Windows path, enabling local privilege escalation (CVE-2026-35603)." AI Agent Incident Database, 2026. https://www.stupidllm.com/incident/STUPID-2026-0090/ (accessed 2026-11-26). CC BY 4.0.
← STUPID-2026-0089By IDSTUPID-2026-0091 →
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. Each Monday, if any scored 7 or above that week — deleted data, leaked secrets, broken production — you get one email with the sources. When nothing did, you get nothing.
This database is callable over MCP — query it from inside your agent.