Medium severity · published Oct 7, 2025
CVE-2025-8291
ZIP64 End of Central Directory (EOCD) Locator record offset not checked
4.3
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CP
CPython · Python Software Foundation
before 3.9.24; 3.10.0 before 3.10.19; 3.11.0 before 3.11.14; 3.12.0 before 3.12.12; 3.13.0 before 3.13.10; 3.14.0 before 3.14.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-8291
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-8291
github.com
https://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267
github.com
https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46
github.com
https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6
github.com
https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196
github.com
https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4
github.com
https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388
More from CPython
9.4
CVE-2026-115557
Distrust compromised intermediate certificates in ssl module
9.4
CVE-2025-4517
Arbitrary writes via tarfile realpath overflow
9.2
CVE-2026-19445
Use-after-free of a server-side SSLContext when sni_callback switches contexts
8.8
CVE-2026-3298
Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes
8.7
CVE-2024-8088
Infinite loop when iterating over zip archive entry names from zipfile.Path
