4.3
/ 10
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
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.
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.
Basic Information
ID
CVE-2025-8291
Source
PSF
Published
Oct 7, 2025 at 18:10
Modified
Oct 7, 2025 at 18:22
Affected Product
Vendor
Python Software Foundation
Product
CPython
Affected Versions
Python Software Foundation CPython 0
References
- github.com /python/cpython/pull/139702
- mail.python.org /archives/list/[email protected]/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/
- github.com /python/cpython/issues/139700
- github.com /python/cpython/commit/162997bb70e067668c039700141770687bc8f267
- github.com /python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6