REDHAT-BUG-2439059: High severity pypi/diskcache vulnerability
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 Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Applications using python-diskcache through 5.6.3 are exposed if an attacker can write files to the cache directory and the application later reads cached data from that directory.
What does an attacker need to exploit it?
The attacker needs write access to the cache directory. Exploitation occurs when a victim application reads attacker-controlled cache content that is deserialized with Python pickle.
Are default deployments affected?
DiskCache uses Python pickle for serialization by default, so deployments using the default serialization behavior are affected when untrusted users or processes can write to the cache directory.
What can be done if patching is not immediately possible?
Restrict write access to the cache directory so that untrusted users and processes cannot create or modify cache files. Ensure the victim application does not read cache data that could have been written by an attacker.