What’s Vulnerable › Vulnerabilities

CVE-2025-8291: ZIP64 End of Central Directory (EOCD) Locator record offset not checked

Description

The 'zipfile' module would not check the validity of the ZIP64 End of Central Directory (EOCD) Locator record offset value would not be used to locate the ZIP64 EOCD record, instead the ZIP64 EOCD record would be assumed to be the previous record in the ZIP archive. This could be abused to create ZIP archives that are handled differently by the 'zipfile' module compared to other ZIP implementations. Remediation maintains this behavior, but checks that the offset specified in the ZIP64 EOCD Locator record matches the expected value.

Affected products

How to fix

Upgrade to a fixed version: Python 3.10.19, 3.11.14, 3.12.12, 3.13.10. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-8291 or the next vulnerability affects your stack