CVE-2025-69872: Diskcache DiskCache Has Unsafe Pickle Deserialization Vulnerability
MODERATECVE-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.
CVE-2025-69872 at a Glance
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.
pip install diskcache>=Latest secure release
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
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?
Which Diskcache versions are affected?
What version fixes CVE-2025-69872?
Is diskcache affected?
What CWE is associated with CVE-2025-69872?
How can I check PyPI dependencies for CVE-2025-69872?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}