U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2025-8291 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267 Python Software Foundation
https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46 Python Software Foundation
https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6 Python Software Foundation
https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196 Python Software Foundation
https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4 Python Software Foundation
https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388 Python Software Foundation
https://github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3 Python Software Foundation
https://github.com/python/cpython/issues/139700 Python Software Foundation
https://github.com/python/cpython/pull/139702 Python Software Foundation
https://mail.python.org/archives/list/[email protected]/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/ Python Software Foundation

Weakness Enumeration

CWE-ID CWE Name Source
CWE-1285 Improper Validation of Specified Index, Position, or Offset in Input CISA-ADP  

Change History

4 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2025-8291
NVD Published Date:
10/07/2025
NVD Last Modified:
10/15/2025
Source:
Python Software Foundation