Vulnerability
CVE-2025-8291
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.
87 advisories report this vulnerability, across 14 ecosystems.
Advisories
-
ALAS2-2025-3041
Amazon Linux 2 2017.12 - ALAS2-2025-3041: medium priority package update for python3
-
ALAS2023-2025-1232
Amazon Linux 2023 - ALAS2023-2025-1232: Medium priority package update for python3.12
-
ALAS2023-2025-1235
Amazon Linux 2023 - ALAS2023-2025-1235: Medium priority package update for python3.13
-
ALAS2023-2025-1236
Amazon Linux 2023 - ALAS2023-2025-1236: Medium priority package update for python3.11
-
ALAS2023-2025-1237
Amazon Linux 2023 - ALAS2023-2025-1237: Medium priority package update for python3.9
-
ALSA-2025:23323
Moderate: python3.12 security update
-
ALSA-2025:23342
Moderate: python3.9 security update
-
ALSA-2025:23530
Important: python39:3.9 security update
-
ALSA-2025:23940
Moderate: python3.12 security update
-
ALSA-2026:0123
Moderate: python3.12 security update
-
AZL-110507
CVE-2025-8291 affecting package python-py 1.11.0-1
-
AZL-68318
CVE-2025-8291 affecting package python3 for versions less than 3.12.9-5
-
AZL-68321
CVE-2025-8291 affecting package python3 for versions less than 3.9.19-16
- CGA-2ggr-fjww-gcpr
- CGA-2pcc-9jgm-82c5
- CGA-5gm9-c74c-5mmh
- CGA-5v4f-2w9g-f95c
- CGA-7xv2-h2gr-5wc8
- CGA-cm3p-7mh3-mpvj
- CGA-gw64-xx5q-wv8f
- CGA-h377-pc9x-35x7
- CGA-j2x5-gf5c-3qfh
- CGA-rwcw-mcq3-58x9
- CGA-vcgj-g6cw-r5jm
- CGA-xvj6-5fpj-2mfq
-
CNA-CVE-2025-8291
ZIP64 End of Central Directory (EOCD) Locator record offset not checked
-
DEBIAN-CVE-2025-8291
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…
-
DLA-4354-1
pypy3 - security update
-
DLA-4445-1
python3.9 - security update
-
ELSA-2025-23323
ELSA-2025-23323: python3.12 security update (MODERATE)
-
ELSA-2025-23342
ELSA-2025-23342: python3.9 security update (MODERATE)
-
ELSA-2025-23530
ELSA-2025-23530: python39:3.9 security update (IMPORTANT)
-
ELSA-2025-23940
ELSA-2025-23940: python3.12 security update (MODERATE)
-
ELSA-2026-0123
ELSA-2026-0123: python3.12 security update (MODERATE)
-
OESA-2025-2574
python3 security update
-
OESA-2025-2575
python3 security update
-
OESA-2025-2576
python3 security update
-
OESA-2025-2577
python3 security update
-
OESA-2025-2578
python3 security update
-
OESA-2025-2706
python3 security update
-
RHSA-2025:23323
Red Hat Security Advisory: python3.12 security update
-
RHSA-2025:23342
Red Hat Security Advisory: python3.9 security update
-
RHSA-2025:23530
Red Hat Security Advisory: python39:3.9 security update
-
RHSA-2025:23940
Red Hat Security Advisory: python3.12 security update
-
RHSA-2026:0123
Red Hat Security Advisory: python3.12 security update
-
RHSA-2026:0353
Red Hat Security Advisory: python3.12 security update
-
RHSA-2026:0354
Red Hat Security Advisory: python3.12 security update
-
RHSA-2026:0355
Red Hat Security Advisory: python3.12 security update
-
RHSA-2026:7443
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:7661
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:8822
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:8824
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHVEX-CVE-2025-8291
cpython: python: Python zipfile End of Central Directory (EOCD) Locator record offset not checked
-
RLSA-2025:23323
Moderate: python3.12 security update
-
RLSA-2025:23342
Moderate: python3.9 security update
-
RLSA-2025:23530
Important: python39:3.9 security update
-
RLSA-2025:23940
Moderate: python3.12 security update
-
RLSA-2026:0123
Moderate: python3.12 security update
-
SUSE-SU-2025:21199-1
Security update for python311
-
SUSE-SU-2025:21207-1
Security update for python311
-
SUSE-SU-2025:4221-1
Security update for python39
-
SUSE-SU-2025:4257-1
Security update for python311
-
SUSE-SU-2025:4257-2
Security update for python311
-
SUSE-SU-2025:4258-1
Security update for python312
-
SUSE-SU-2025:4277-1
Security update for python313
-
SUSE-SU-2025:4297-1
Security update for python311
-
SUSE-SU-2025:4313-1
Security update for python
-
SUSE-SU-2025:4352-1
Security update for python310
-
SUSE-SU-2025:4368-1
Security update for python3
-
SUSE-SU-2025:4389-1
Security update for python
-
SUSE-SU-2025:4398-1
Security update for python3
-
SUSE-SU-2025:4487-1
Security update for python36
-
SUSE-SU-2026:0133-1
Security update for python
-
SUSE-SU-2026:20125-1
Security update for python313
-
SUSE-SU-2026:20154-1
Security update for python313
-
SUSEVEX-CVE-2025-8291
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…
-
UBUNTU-CVE-2025-8291
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…
-
USN-7886-1
python3.12, python3.11, python3.10, python3.9, python3.8, python3.7, python3.6, python3.5, python3.4 vulnerabilities
-
USN-7886-2
python3.13 vulnerabilities
-
openSUSE-SU-2025:15713-1
python315-3.15.0~a1-1.1 on GA media
-
openSUSE-SU-2025:15742-1
python312-3.12.12-2.1 on GA media
-
openSUSE-SU-2025:15748-1
python314-3.14.0-3.1 on GA media
-
openSUSE-SU-2025:15750-1
python313-3.13.9-2.1 on GA media
-
openSUSE-SU-2025:15760-1
python311-3.11.14-2.1 on GA media
-
openSUSE-SU-2025:15768-1
python310-3.10.19-2.1 on GA media
-
openSUSE-SU-2025:15792-1
python39-3.9.24-2.1 on GA media
-
openSUSE-SU-2026:20081-1
Security update for python313
References
- https://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267
- https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46
- https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6
- https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196
- https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4
- https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388
- https://github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3
- https://github.com/python/cpython/issues/139700
- https://github.com/python/cpython/pull/139702
- https://mail.python.org/archives/list/[email protected]/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/
- https://github.com/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6p
- https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2025-12.json