Vulnerabilities in pkg:pypi/diskcache

PACKAGE
Advisory Identifier: GHSA-w8v5-vhqr-4h9v
Advisory Summary

CVE-2025-69872 is a MODERATE diskcache has unsafe pickle deserialization vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Diskcache libraries in the PyPI ecosystem. The issue involves diskcache has unsafe pickle deserialization. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/diskcache

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-w8v5-vhqr-4h9v CVE-2025-69872 MODERATE DiskCache has unsafe pickle deserialization

CVE-2025-69872 at a Glance

CVE Identifier CVE-2025-69872
GHSA Identifier GHSA-w8v5-vhqr-4h9v
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Diskcache
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-69872

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

diskcache fixed: Latest secure release
pip install diskcache>=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 diskcache

How to Check if You Are Affected

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

pip show diskcache

Analyze the terminal output to locate any version of Diskcache 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 diskcache command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Diskcache, 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

DiskCache (python-diskcache) through 5.6.3 uses Python pickle for serialization by default. An attacker with write access to the cache directory can achieve arbitrary code execution when a victim application reads from the cache.

CVE-2025-69872 Affected Diskcache Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
diskcache
PyPI
≤ 5.6.3

References

Frequently Asked Questions

What is CVE-2025-69872?
CVE-2025-69872 is a security vulnerability in Diskcache involving DiskCache has unsafe pickle deserialization under CWE-502: Deserialization of Untrusted Data.
Which Diskcache versions are affected?
Affected versions include releases prior to current release patches across affected packages: diskcache.
What version fixes CVE-2025-69872?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is diskcache affected?
Yes, diskcache is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-69872?
CVE-2025-69872 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for CVE-2025-69872?
Run the dependency tree command: 'pip show diskcache'. 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-w8v5-vhqr-4h9v",
  "modified" : "2026-02-12T03:09:56Z",
  "published" : "2026-02-11T21:30:39Z",
  "aliases" : [ "CVE-2025-69872" ],
  "summary" : "DiskCache has unsafe pickle deserialization",
  "details" : "DiskCache (python-diskcache) through 5.6.3 uses Python pickle for serialization by default. An attacker with write access to the cache directory can achieve arbitrary code execution when a victim application reads from the cache.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "diskcache"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "5.6.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-69872"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69872-DiskCache-Pickle-Deserialization.md"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/grantjenks/python-diskcache"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502", "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-12T03:09:56Z",
    "nvd_published_at" : "2026-02-11T19:15:50Z"
  }
}