# CVE-2025-8291: ZIP64 End of Central Directory (EOCD) Locator record offset not checked

- Severity: Medium 4.3 (CVSS:3.1, scored by PSF) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-07T18:10:05.908Z
- Modified: 2026-10-08T22:10:00.563Z
- Also known as: PSF-2025-12, BIT-LIBPYTHON-2025-8291, BIT-PYTHON-2025-8291, BIT-PYTHON-MIN-2025-8291, GHSA-hhv7-p4pg-wm6p
- Weaknesses: CWE-1285
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.9.24; from 3.10.0 before 3.10.19; from 3.11.0 before 3.11.14; from 3.12.0 before 3.12.12; from 3.13.0 before 3.13.10; from 3.14.0 before 3.14.1
- https://github.com/python/cpython: before 162997bb70e067668c039700141770687bc8f267; before 333d4a6f4967d3ace91492a39ededbcf3faa76a6; before 1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46; before 76437ac248ad8ca44e9bf697b02b1e2241df2196; before 8392b2f0d35678407d9ce7d95655a5b77de161b4; before bca11ae7d575d87ed93f5dd6a313be6246e3e388; before d11e69d6203080e3ec450446bfed0516727b85c3
- libpython (Bitnami): before 3.9.24; from 3.10.0 before 3.10.19; from 3.11.0 before 3.11.14; from 3.12.0 before 3.12.12; from 3.13.0 before 3.13.10; from 3.14.0 before 3.14.1
- python (Bitnami): before 3.9.24; from 3.10.0 before 3.10.19; from 3.11.0 before 3.11.14; from 3.12.0 before 3.12.12; from 3.13.0 before 3.13.10; from 3.14.0 before 3.14.1
- python-min (Bitnami): before 3.9.24; from 3.10.0 before 3.10.19; from 3.11.0 before 3.11.14; from 3.12.0 before 3.12.12; from 3.13.0 before 3.13.10; from 3.14.0 before 3.14.1

## Every score

- PSF: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6p> (exploit, technical-description, web)
- <https://github.com/python/cpython/pull/139702> (patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/issues/139700> (issue-tracking, report, web)
- <https://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267> (fix, patch, web)
- <https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6> (fix, patch, web)
- <https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46> (fix, patch, web)
- <https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196> (fix, patch, web)
- <https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4> (fix, patch, web)
- <https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388> (fix, patch, web)
- <https://github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3> (fix, patch, web)
- <https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2025-12.json> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8291> (web)

## Sources

- CVE List: [CVE-2025-8291](https://www.cve.org/CVERecord?id=CVE-2025-8291), CVE Terms of Use, modified 2026-07-31
- Python Software Foundation: [PSF-2025-12](https://osv.dev/vulnerability/PSF-2025-12), CC-BY-4.0, modified 2025-10-31
- NVD: [CVE-2025-8291](https://nvd.nist.gov/vuln/detail/CVE-2025-8291), Public domain, modified 2026-10-08
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2025-8291](https://osv.dev/vulnerability/BIT-LIBPYTHON-2025-8291), Apache-2.0, modified 2025-12-04
- Bitnami Vulnerability Database: [BIT-PYTHON-2025-8291](https://osv.dev/vulnerability/BIT-PYTHON-2025-8291), Apache-2.0, modified 2025-12-04
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2025-8291](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2025-8291), Apache-2.0, modified 2025-12-04

---

Page: https://cve.day/CVE-2025-8291 · Whole record: https://cve.day/CVE-2025-8291.json · Rebuilt by cve.day 2026-11-25T22:59:05.610Z
