REDHAT-BUG-2439059: High severity pypi/diskcache vulnerability

Published Feb 11, 2026
·
Updated

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

1 affected component
pypi/diskcache<=5.6.3

Event History

Feb 11, 2026
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203