CVE-2025-69872 Details
Description
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.
A vulnerability in DiskCache (python-diskcache) versions through 5.6.3 allows for arbitrary code execution via unsafe deserialization of untrusted data. The library uses Python's pickle module for serialization by default, which is known to be insecure. An attacker with write access to the cache directory can inject a malicious pickle payload that executes code when the cached data is read by the application. This vulnerability arises from improper handling of serialization, lack of security warnings in the documentation, and the default use of pickle without safe deserialization measures.
Users are advised to switch from the default pickle serializer to JSON serialization, using DiskCache's JSONDisk option. Additionally, cache directory permissions should be restricted to prevent unauthorized write access.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 11, 2026CISA-ADP
Assessed Feb 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:36350 | redhat-SADP | |
| https://access.redhat.com/errata/RHSA-2026:3713 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2025-69872 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2439059 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-69872.json | redhat-SADP | |
| https://github.com/EthanKim88/ethan-cve-disclosures/blob/main/CVE-2025-69872-DiskCache-Pickle-Deserialization.md | [email protected] | ExploitTechnical Analysis |
| https://github.com/grantjenks/python-diskcache | [email protected] | ProductVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | redhat-SADP |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| grantjenks DiskCache | All versions |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jul 8, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Feb 12, 2026 | CVE Modified | CISA-ADP |
| Feb 11, 2026 | New CVE Received | [email protected] |
Volerion