CVE-2025-8291

ZIP64 End of Central Directory (EOCD) Locator record offset not checked

State
Published
Severity
4.3 Medium
Published
Oct 7, 2025
Updated
Jul 31, 2026
Reserved
Jul 28, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NPSF

Weaknesses

  • CWE-1285 Improper Validation of Specified Index, Position, or Offset in Input

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.9.24Affected
  • 3.10.0 to before 3.10.19Affected
  • 3.11.0 to before 3.11.14Affected
  • 3.12.0 to before 3.12.12Affected
  • 3.13.0 to before 3.13.10Affected
  • 3.14.0 to before 3.14.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.