CVE-2026-45136
Code Injection in Claude Code Cache Fix Proxy
Publication date: 2026-05-27
Last updated on: 2026-05-27
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| claude_code | claude_code_cache_fix | to 3.5.2 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-94 | The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. |
| CWE-78 | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The vulnerability exists in claude-code-cache-fix versions from 3.5.0 to before 3.5.2, specifically in the script tools/quota-statusline.sh introduced in version 3.5.0. This script interpolates Claude Code's hook stdin payload directly into a Python triple-quoted string literal. If a user-controlled field in the payload contains a triple single-quote sequence ('''), it prematurely closes the string literal, allowing the subsequent bytes to be executed as Python code within the user's Claude Code process.
This means that an attacker can inject and execute arbitrary Python code by crafting a malicious payload, leading to potential code execution vulnerabilities. The issue was fixed in version 3.5.2.
How can this vulnerability impact me? :
This vulnerability can lead to arbitrary code execution within the user's Claude Code process. An attacker who can control the payload sent to the vulnerable script can execute malicious Python code, potentially compromising the system running claude-code-cache-fix.
The impact includes unauthorized actions, data manipulation, or system compromise depending on the privileges of the affected process.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is fixed in claude-code-cache-fix version 3.5.2. Immediate mitigation involves upgrading the software from any version between 3.5.0 and before 3.5.2 to version 3.5.2 or later.