Vulnerabilities in pkg:pypi/gptcache

PACKAGE
Advisory Identifier: GHSA-xfqj-4cr9-9gr5
Advisory Summary

CVE-2026-10812 is a LOW (CVSS 3.6) file and image cache keys vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting GPTCache libraries in the PyPI ecosystem. The issue involves file and image cache keys collide because bufferedreader.peek() only reads the buffered prefix. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/gptcache

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/gptcache. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-xfqj-4cr9-9gr5 CVE-2026-10812 LOW GPTCache: File and image cache keys collide because BufferedReader.peek() only reads the buffered prefix

CVE-2026-10812 at a Glance

CVE Identifier CVE-2026-10812
GHSA Identifier GHSA-xfqj-4cr9-9gr5
Severity LOW
CVSS v3.1 Base Score 3.6
CWE Classification CWE-327: Use of a Broken or Risky Cryptographic Algorithm
Affected Product GPTCache
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 3.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-10812

To remediate this vulnerability, upgrade all affected GPTCache dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gptcache fixed: Latest secure release
pip install gptcache>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show gptcache

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-10812, inspect your installed packages using pip:

pip show gptcache

Analyze the terminal output to locate any version of GPTCache in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show gptcache command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. In GPTCache, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was detected in zilliztech GPTCache up to 0.1.44. Affected by this issue is the function BufferedReader.peek of the file gptcache/processor/pre.py of the component Cache Key Handler. Performing a manipulation of the argument input_data["image"] results in use of weak hash. The attack must be initiated from a local position. The attack is considered to have high complexity. The exploitation is known to be difficult. The exploit is now public and may be used. The pull request to fix this issue awaits acceptance.

CVE-2026-10812 Affected GPTCache Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
gptcache
PyPI
≤ 0.1.44

References

Frequently Asked Questions

What is CVE-2026-10812?
CVE-2026-10812 is a security vulnerability in GPTCache involving File and image cache keys collide because BufferedReader.peek() only reads the buffered prefix under CWE-327: Use of a Broken or Risky Cryptographic Algorithm.
Which GPTCache versions are affected?
Affected versions include releases prior to current release patches across affected packages: gptcache.
What version fixes CVE-2026-10812?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is gptcache affected?
Yes, gptcache is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-10812?
CVE-2026-10812 has a CVSS v3.1 base score of 3.6 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2026-10812?
CVE-2026-10812 is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm (The product uses a broken or risky cryptographic algorithm or protocol.).
How can I check PyPI dependencies for CVE-2026-10812?
Run the dependency tree command: 'pip show gptcache'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xfqj-4cr9-9gr5",
  "modified" : "2026-07-15T18:55:26Z",
  "published" : "2026-06-04T15:30:40Z",
  "aliases" : [ "CVE-2026-10812" ],
  "summary" : "GPTCache: File and image cache keys collide because BufferedReader.peek() only reads the buffered prefix",
  "details" : "A vulnerability was detected in zilliztech GPTCache up to 0.1.44. Affected by this issue is the function BufferedReader.peek of the file gptcache/processor/pre.py of the component Cache Key Handler. Performing a manipulation of the argument input_data[\"image\"] results in use of weak hash. The attack must be initiated from a local position. The attack is considered to have high complexity. The exploitation is known to be difficult. The exploit is now public and may be used. The pull request to fix this issue awaits acceptance.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "gptcache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.1.44"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-10812"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zilliztech/GPTCache/issues/684"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zilliztech/GPTCache/pull/678"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zilliztech/GPTCache"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/cve/CVE-2026-10812"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/831636"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/368260"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/368260/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-327" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-15T18:55:26Z",
    "nvd_published_at" : "2026-06-04T15:16:48Z"
  }
}