CVE-2026-45136: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in cnighswonger claude-code-cache-fix
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.
AI Analysis
Technical Summary
The vulnerability in claude-code-cache-fix (versions >=3.5.0 and <3.5.2) involves improper neutralization of special elements (CWE-78) and unsafe code injection (CWE-94) in the tools/quota-statusline.sh script. User input is directly embedded into a Python triple-quoted string without sanitization, enabling an attacker to inject a ''' sequence that closes the string early and allows execution of arbitrary Python code in the user's Claude Code process. This can lead to high-impact code execution with low attack complexity and no required privileges or user interaction. The vulnerability is resolved in version 3.5.2.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary Python code within the context of the user's Claude Code process, potentially leading to unauthorized actions or compromise of the affected system. The CVSS 4.0 score is 8.6 (high), reflecting high impact on confidentiality, integrity, and availability with low attack complexity and no required privileges or user interaction.
Mitigation Recommendations
This vulnerability is fixed in claude-code-cache-fix version 3.5.2. Users should upgrade to version 3.5.2 or later to remediate this issue. No official patch or temporary fix is documented beyond upgrading. Since the product is not a cloud service, remediation is the responsibility of the user. Patch status is not explicitly confirmed beyond the stated fix in 3.5.2; users should verify with the vendor for the latest advisory and updates.
CVE-2026-45136: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in cnighswonger claude-code-cache-fix
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 v4.0
Score 8.6high
Affected software
pkg:github/cnighswonger/claude-code-cache-fixRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in claude-code-cache-fix (versions >=3.5.0 and <3.5.2) involves improper neutralization of special elements (CWE-78) and unsafe code injection (CWE-94) in the tools/quota-statusline.sh script. User input is directly embedded into a Python triple-quoted string without sanitization, enabling an attacker to inject a ''' sequence that closes the string early and allows execution of arbitrary Python code in the user's Claude Code process. This can lead to high-impact code execution with low attack complexity and no required privileges or user interaction. The vulnerability is resolved in version 3.5.2.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary Python code within the context of the user's Claude Code process, potentially leading to unauthorized actions or compromise of the affected system. The CVSS 4.0 score is 8.6 (high), reflecting high impact on confidentiality, integrity, and availability with low attack complexity and no required privileges or user interaction.
Mitigation Recommendations
This vulnerability is fixed in claude-code-cache-fix version 3.5.2. Users should upgrade to version 3.5.2 or later to remediate this issue. No official patch or temporary fix is documented beyond upgrading. Since the product is not a cloud service, remediation is the responsibility of the user. Patch status is not explicitly confirmed beyond the stated fix in 3.5.2; users should verify with the vendor for the latest advisory and updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-08T20:08:17.210Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a175c27e29bf47b50eb6095
Added to database: 05/27/2026, 21:03:35 UTC
Last enriched: 06/04/2026, 20:23:52 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 82
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.