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

Published Oct 7, 2025
·
Updated

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 Software

1 affected component
Python Software Foundation Python zipfile module

Event History

Oct 7, 2025
CVE Published
via OSV·06:10 PM
Data Sourced
via OSV·06:10 PM
DescriptionSeverity

Frequently Asked Questions

1

What must an attacker do to exploit this issue?

An attacker must convince a user or application to process a specially crafted ZIP64 archive with Python's zipfile module. No privileges are required, but user interaction is required.

2

What is the practical impact of a successful exploit?

The crafted archive may be interpreted differently by Python's zipfile module than by other ZIP implementations. The stated impact is integrity-related; no confidentiality or availability impact is indicated.

3

How can I tell whether my application may be affected?

Applications may be affected if they use Python's zipfile module to read ZIP64 archives from untrusted or externally supplied sources. The provided data does not identify specific Python versions or configurations.

4

What can be done before remediation is available?

Avoid processing untrusted ZIP64 archives with the affected module where practical, and validate archives with an independent ZIP implementation if differing archive interpretation would create a security risk.

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