CVE-2026-45136 PUBLISHED

claude-code-cache-fix: Local code execution via Python triple-quote injection in tools/quota-statusline.sh

Assigner: GitHub_M
Reserved: 08.05.2026 Published: 27.05.2026 Updated: 27.05.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
CVSS Score: 8.6

Product Status

Vendor cnighswonger
Product claude-code-cache-fix
Versions
  • Version >= 3.5.0, < 3.5.2 is affected

References

Problem Types

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE
  • CWE-94: Improper Control of Generation of Code ('Code Injection') CWE