CVE-2026-45136
Received Received - Intake
Code Injection in Claude Code Cache Fix Proxy

Publication date: 2026-05-27

Last updated on: 2026-05-27

Assigner: GitHub, Inc.

Description
claude-code-cache-fix is a cache optimization proxy for Claude Code. From 3.5.0 to before 3.5.2, tools/quota-statusline.sh (introduced in v3.5.0) interpolates Claude Code's hook stdin payload directly into a Python triple-quoted string literal. A ''' byte sequence in any user-controlled field of the payload closes the literal early and lets following bytes execute as Python in the user's Claude Code process. This vulnerability is fixed in 3.5.2.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-27
Last Modified
2026-05-27
Generated
2026-05-28
AI Q&A
2026-05-28
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
claude_code claude_code_cache_fix to 3.5.2 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart