Use of Weak Hash Affecting gptcache package, versions [0,]


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.08% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Weak Hash vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-GPTCACHE-17751096
  • published1 Jul 2026
  • disclosed4 Jun 2026
  • creditUnknown

Introduced: 4 Jun 2026

CVE-2026-10812  (opens in a new tab)
CWE-328  (opens in a new tab)

How to fix?

There is no fixed version for gptcache.

Overview

gptcache is a GPTCache, a powerful caching library that can be used to speed up and lower the cost of chat applications that rely on the LLM service. GPTCache works as a memcache for AIGC applications, similar to how Redis works for traditional applications.

Affected versions of this package are vulnerable to Use of Weak Hash in the BufferedReader.peek process. An attacker can cause unintended modification or disruption of cache key handling by manipulating the input_data["image"] argument, leading to the use of a weak hash. This is only exploitable if the attacker has local access and can supply crafted input to the cache key handler.

CVSS Base Scores

version 4.0
version 3.1