CVE-2025-8291 Details
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.
A vulnerability exists in the Python 'zipfile' module regarding the handling of ZIP64 End-of-Central-Directory (EOCD) Locator records. The module fails to validate the offset values in these records, which are crucial for locating the corresponding ZIP64 EOCD records. Instead, it incorrectly assumes that the ZIP64 EOCD record is the one preceding it in the archive. This flaw can be exploited to create ZIP files that the 'zipfile' module processes differently than other ZIP handling implementations. The issue arises in Python versions 3.9 through 3.14, with the exception of 3.10, where the vulnerability has been addressed.
Users can update to Python versions 3.14 or 3.10 to address this vulnerability. Instructions for updating can be found in the Python documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 7, 2025CISA-ADP
Assessed Oct 29, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1285 | Improper Validation of Specified Index, Position, or Offset in Input | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Python zipfile | All versions |
CPE
Remediation
| |
Change History
10 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Translated | [email protected] |
| Jul 31, 2026 | CVE Modified | [email protected] |
| Jul 30, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 29, 2025 | CVE Modified | CISA-ADP |
| Oct 15, 2025 | CVE Modified | CISA-ADP |
| Oct 9, 2025 | CVE Modified | [email protected] |
| Oct 7, 2025 | CVE Modified | [email protected] |
| Oct 7, 2025 | New CVE Received | [email protected] |
Volerion