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.
Published: 2026-05-27
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in the cache optimization proxy for Claude Code, captured in the tools/quota-statusline.sh script added in version 3.5.0, allows an attacker who can supply data to the hook stdin payload to terminate a Python triple‑quoted string literal prematurely. This exposes the remaining payload to execution as valid Python code under the user’s Claude Code process. The result is arbitrary code execution in the context of the user, potentially allowing the attacker to read or modify confidential data, alter the user environment, or disrupt normal operation of the Claude Code tool.

Affected Systems

The vulnerability exists in the claude-code-cache-fix project, specifically versions from 3.5.0 up to and including 3.5.1. The affected script is tools/quota-statusline.sh; any deployment of the repository in those releases is impacted until the fix is applied in version 3.5.2.

Risk and Exploitability

The CVSS score of 8.6 indicates a high severity situation. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no publicly known exploitation yet. The attack requires the attacker to provide data to the hook stdin payload, so the vector is local and depends on the ability to influence that input. Once successfully exploited, the attacker could execute arbitrary Python code within the user’s Claude Code process, leading to serious confidentiality and integrity risks for that user’s data and system.

Generated by OpenCVE AI on May 27, 2026 at 22:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade claude-code-cache-fix to version 3.5.2 or later, the release that removes the vulnerable interpolation.
  • If an upgrade cannot be performed immediately, remove or disable the tools/quota-statusline.sh script so that no user‑supplied payloads are processed by the affected code.
  • Implement input sanitization or escaping for the hook stdin payload before it is inserted into the Python triple‑quoted string, ensuring that a ''' sequence cannot terminate the literal early.

Generated by OpenCVE AI on May 27, 2026 at 22:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g3xq-3gmv-qq8g claude-code-cache-fix vulnerable to local code execution via Python triple-quote injection in tools/quota-statusline.sh
History

Wed, 27 May 2026 21:00:00 +0000

Type Values Removed Values Added
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.
Title claude-code-cache-fix: Local code execution via Python triple-quote injection in tools/quota-statusline.sh
Weaknesses CWE-78
CWE-94
References
Metrics cvssV4_0

{'score': 8.6, '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-27T20:48:22.312Z

Reserved: 2026-05-08T20:08:17.210Z

Link: CVE-2026-45136

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-27T21:16:18.523

Modified: 2026-05-27T21:16:18.523

Link: CVE-2026-45136

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T22:30:35Z

Weaknesses