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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | diskcache | No fix yet | — |
| Debian 13 | diskcache | No fix yet | — |
| Debian 12 | diskcache | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | diskcache | No fix yet | — |
| Ubuntu 26.04 LTS | diskcache | No fix yet | — |
| Ubuntu 25.10 | diskcache | No fix yet | — |
| Ubuntu 24.04 LTS | diskcache | No fix yet | — |
| Ubuntu 22.04 LTS | diskcache | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | diskcache | <= 5.6.3 | — | GHSA-w8v5-vhqr-4h9v |