CVE-2025-69872 DiskCache has unsafe pickle deserialization

Critical 9.8 Published Updated

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.

Weakness: CWE-502, CWE-94

Which versions are affected by CVE-2025-69872?

3 open source packages ship an affected version, including diskcache.

PackageAffectedFixed in
diskcache PyPIAll versions to 5.6.3None
diskcache PyPIAll versions to 5.6.3None
diskcache PyPIAll versions to 5.6.3None

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.

Is CVE-2025-69872 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free