PyPA Advisory Database
PYSEC-2026-2447
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | diskcache | All versions up to and including 5.6.3 |