Claude Code is reported to have two caching bugs that can silently increase API costs by 10-20 times.

robot
Abstract generation in progress

ME News update: On March 31 (UTC+8), a Reddit developer revealed that, using Ghidra, a MITM proxy, and radare2, they reverse-engineered a 228MB binary file from the standalone installation version of Claude Code. They found two separate caching bugs that could raise API costs by 10–20x without users knowing. The relevant analysis was submitted to GitHub (issue #40524), where Anthropic marked it as a regression bug and assigned someone to handle it. The first bug existed in the customized Bun runtime used by the standalone installation; an error in the billing identifier replacement logic caused each request to trigger a full cache rebuild. The second bug affected users who use --resume or --continue to restore sessions; it was introduced since v2.1.69, and a cache prefix mismatch caused the entire conversation history to be rewritten in full rather than read from cache. Previously, Anthropic engineers had confirmed that the speed at which users reach usage limits is “far faster than expected.” (Source: PANews)

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments
  • Pin