CVE-2025-69872 DiskCache has unsafe pickle deserialization
An attacker with write access to the cache directory can achieve arbitrary code execution via unsafe pickle deserialization in the DiskCache library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-69872?
CVE-2025-69872 is a critical unsafe deserialization vulnerability in n/a, published on 11 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-69872?
3 open source packages ship an affected version, including diskcache.
| Package | Affected | Fixed in |
|---|---|---|
diskcache PyPI | All versions to 5.6.3 | None |
diskcache PyPI | All versions to 5.6.3 | None |
diskcache PyPI | All versions to 5.6.3 | None |
How do I fix CVE-2025-69872?
Upgrade to a fixed version.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2025-69872 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-69872 exists.
Sources
Also known as DEBIAN-CVE-2025-69872, GHSA-w8v5-vhqr-4h9v, MINI-gfm3-x58x-qg4m, MINI-gwg6-874f-ggpq, MINI-jqhv-q852-7x42, PYSEC-2026-2447 and 1 more.