CVE-2025-8291 json
ZIP64 End of Central Directory (EOCD) Locator record offset not checked
published 2025-10-07 13 mo ago modified 2026-10-08 31 d ago also BIT-libpython-2025-8291 , BIT-python-2025-8291 , BIT-python-min-2025-8291 , EUVD-2025-31917 , GHSA-hhv7-p4pg-wm6p
- cvss
- 4.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 40%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami libpython 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.10, 3.14.1
- bitnami python 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.10, 3.14.1
- bitnami python-min 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.10, 3.14.1
- Python Software Foundation CPython 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.10, 3.14.1
- pypy3 Debian 14 7.3.21+dfsg-1
- python3.11 Debian 12 3.11.2-6+deb12u7
- python3.13 Debian 13 3.13.5-2+deb13u1
- python3.14 Debian 14 3.14.0-3
debian advisories DEBIAN-CVE-2025-8291
- python3.10 Ubuntu 22.04 LTS 3.10.12-1~22.04.12
- python3.12 Ubuntu 24.04 LTS 3.12.3-1ubuntu0.9
- python3.13 Ubuntu 25.10 3.13.7-1ubuntu0.1
- python3.4 Ubuntu Pro 14.04 LTS 3.4.3-1ubuntu1~14.04.7+esm17
- python3.5 Ubuntu Pro 14.04 LTS 3.5.2-2ubuntu0~16.04.4~14.04.1+esm8
- python3.5 Ubuntu Pro 16.04 LTS 3.5.2-2ubuntu0~16.04.13+esm20
- python3.6 Ubuntu Pro 18.04 LTS 3.6.9-1~18.04ubuntu1.13+esm7
- python3.7 Ubuntu Pro 18.04 LTS 3.7.5-2ubuntu1~18.04.2+esm8
ubuntu advisories UBUNTU-CVE-2025-8291
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python3.11 hummingbird 1 3.11.15-4.hum1
- python3.11-idle hummingbird 1 3.11.15-4.hum1
- python3.11-libs hummingbird 1 3.11.15-4.hum1
- python3.11-test hummingbird 1 3.11.15-4.hum1
- python3.11-tkinter hummingbird 1 3.11.15-4.hum1
- python3.12 hummingbird 1 3.12.13-3.hum1
- python3.12-idle hummingbird 1 3.12.13-3.hum1
- python3.12-libs hummingbird 1 3.12.13-3.hum1
red hat advisories RHSA-2026:8822RHSA-2026:8824RHSA-2026:7661RHSA-2026:7443RHSA-2026:0354RHSA-2026:0355
- python313 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 3.13.11-160000.1.1
- python313-core SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 3.13.11-160000.1.1
- python313-documentation SLES for SAP applications 16.0, SLES 16.0 3.13.11-160000.1.1
- python311 SLE Module for Public Cloud 15 SP4, SLE High Performance Computing 15 SP5-ESPOS, SLE High Performance Computing 15 SP4-ESPOS +6 more 3.11.14-150400.9.69.1
- python311-core SLE Module for Public Cloud 15 SP4, SLE High Performance Computing 15 SP5-ESPOS, SLE High Performance Computing 15 SP4-ESPOS +6 more 3.11.14-150400.9.69.1
- python311-documentation SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 3.11.14-150400.9.69.1
- python SLE Module for Package Hub 15 SP7, SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 2.7.18-150000.89.1
- python-base SLE Module for Package Hub 15 SP7, SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 2.7.18-150000.89.2
suse advisories SUSE-SU-2026:20125-1SUSE-SU-2026:20154-1SUSE-SU-2026:0133-1SUSE-SU-2025:4487-1SUSE-SU-2025:4398-1SUSE-SU-2025:4257-2
- python313 openSUSE Leap 16.0 3.13.11-160000.1.1
- python313-core openSUSE Leap 16.0 3.13.11-160000.1.1
- python313-nogil openSUSE Leap 16.0 3.13.11-160000.1.1
- python313-documentation openSUSE Leap 16.0 3.13.11-160000.1.1
- python313-nogil-nogil-core openSUSE Leap 16.0 3.13.11-160000.1.1
- python39 openSUSE Tumbleweed 3.9.24-2.1
- python310 openSUSE Tumbleweed 3.10.19-2.1
- python311 openSUSE Tumbleweed 3.11.14-2.1
opensuse advisories openSUSE-SU-2026:20081-1openSUSE-SU-2025:15792-1openSUSE-SU-2025:15768-1openSUSE-SU-2025:15760-1openSUSE-SU-2025:15750-1openSUSE-SU-2025:15748-1
- python3.12 AlmaLinux 8 3.12.12-1.el8_10
- python3.12-idle AlmaLinux 8 3.12.12-1.el8_10
- python3.12-libs AlmaLinux 8 3.12.12-1.el8_10
- python3.12-test AlmaLinux 8 3.12.12-1.el8_10
- python3.12-tkinter AlmaLinux 8 3.12.12-1.el8_10
- python3.12-rpm-macros AlmaLinux 8 3.12.12-1.el8_10
- python-unversioned-command AlmaLinux 10 3.12.12-1.el10_1
- python39 AlmaLinux 8 3.9.25-2.module_el8.10.0+4083+53cad1fb
almalinux advisories ALSA-2026:0123ALSA-2025:23940ALSA-2025:23530ALSA-2025:23323ALSA-2025:23342
- python3.12 Rocky Linux 8 3.12.12-1.el8_10
- python3.12 Rocky Linux 10 3.12.12-1.el10_1
- python3.12 Rocky Linux 9 3.12.12-1.el9_7
- python3.9 Rocky Linux 9 3.9.25-2.el9_7
- numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1582+bc278001
- numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1860+afcc1c71
- scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1860+afcc1c71
- scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1582+bc278001
rocky linux advisories RLSA-2026:0123RLSA-2025:23940RLSA-2025:23323RLSA-2025:23342RLSA-2025:23530
- python3 Azure Linux 3.0 3.12.9-5
- python3 CBL-Mariner 2.0 3.9.19-16
azure linux advisories AZL-68318AZL-68321
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- github.com/python/cpython@162997b commit
- github.com/python/cpython@333d4a6 commit
- github.com/python/cpython@1d29afb commit
- github.com/python/cpython@76437ac commit
- github.com/python/cpython@8392b2f commit
- github.com/python/cpython@bca11ae commit
- github.com/python/cpython@d11e69d commit
- github.com/python/cpython#139702 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-8291 updated cvss 4.3
cpython: python: Python zipfile End of Central Directory (EOCD) Locator record offset not checked
-
Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 moreaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 scipy, python3, python36, python3.11, python-nose, python-wheel, +31 more Red Hat Enterprise Linux 9 python3.11, python3.11-idle, python3.11-libs, python3.11-test, python3.11-tkinter Red Hat Enterprise Linux AI (RHEL AI) rhelai1/bootc-amd-rhel9, rhelai1/bootc-nvidia-rhel9, rhelai1/bootc-azure-amd-rhel9, rhelai1/bootc-aws-nvidia-rhel9, rhelai1/bootc-gcp-nvidia-rhel9, rhelai1/bootc-azure-nvidia-rhel9affected: workaround, no fix available “Fix deferred”
-
Red Hat Ceph Storage 7 rhceph 1769508455fixed: vendor fix RHSA-2026:1858
-
Red Hat Ceph Storage 8 rhceph 1769512383fixed: vendor fix RHSA-2026:1652
-
Red Hat CodeReady Linux Builder EUS (v.9.4) python3.12 3.12.1-4.el9_4.8, python3.12-idle 3.12.1-4.el9_4.8, python3.12-test 3.12.1-4.el9_4.8, python3.12-tkinter 3.12.1-4.el9_4.8fixed: vendor fix RHSA-2026:0354
-
Red Hat CodeReady Linux Builder EUS (v.9.6) python3.12 3.12.9-1.el9_6.3, python3.12-idle 3.12.9-1.el9_6.3, python3.12-test 3.12.9-1.el9_6.3, python3.12-tkinter 3.12.9-1.el9_6.3fixed: vendor fix RHSA-2026:0355
-
Red Hat Discovery 2 discovery 1767888970, discovery 1767904573fixed: vendor fix RHSA-2026:0414
-
Red Hat Enterprise Linux AppStream (v. 8) python3.12 3.12.12-1.el8_10, python3.12-libs 3.12.12-1.el8_10, python3.12-tkinter 3.12.12-1.el8_10, python3.12-rpm-macros 3.12.12-1.el8_10, scipy 1.5.4-5.module+el8.9.0+19644+d68f775d, numpy 1.19.4-3.module+el8.9.0+19644+d68f775d, +53 morefixed: vendor fix RHSA-2025:23530
show 15 moreshow fewer
-
Red Hat Enterprise Linux AppStream (v. 9) python3.12 3.12.12-1.el9_7, python3-tkinter 3.9.25-2.el9_7, python3.12-libs 3.12.12-1.el9_7, python3.12-tkinter 3.12.12-1.el9_7, python-unversioned-command 3.9.25-2.el9_7fixed: vendor fix RHSA-2025:23342
-
Red Hat Enterprise Linux AppStream (v. 10) python3-tkinter 3.12.12-1.el10_1, python-unversioned-command 3.12.12-1.el10_1fixed: vendor fix RHSA-2025:23940
-
Red Hat Enterprise Linux AppStream EUS (v. 10.0) python3-tkinter 3.12.9-2.el10_0.4, python-unversioned-command 3.12.9-2.el10_0.4fixed: vendor fix RHSA-2026:0353
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) python3.12 3.12.1-4.el9_4.8, python3.12-libs 3.12.1-4.el9_4.8, python3.12-tkinter 3.12.1-4.el9_4.8fixed: vendor fix RHSA-2026:0354
-
Red Hat Enterprise Linux AppStream EUS (v.9.6) python3.12 3.12.9-1.el9_6.3, python3.12-libs 3.12.9-1.el9_6.3, python3.12-tkinter 3.12.9-1.el9_6.3fixed: vendor fix RHSA-2026:0355
-
Red Hat Enterprise Linux BaseOS (v. 9) python3 3.9.25-2.el9_7, python3.9 3.9.25-2.el9_7, python3-libs 3.9.25-2.el9_7fixed: vendor fix RHSA-2025:23342
-
Red Hat Enterprise Linux BaseOS (v. 10) python3 3.12.12-1.el10_1, python3.12 3.12.12-1.el10_1, python3-libs 3.12.12-1.el10_1fixed: vendor fix RHSA-2025:23940
-
Red Hat Enterprise Linux BaseOS EUS (v. 10.0) python3 3.12.9-2.el10_0.4, python3.12 3.12.9-2.el10_0.4, python3-libs 3.12.9-2.el10_0.4fixed: vendor fix RHSA-2026:0353
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) python3 3.9.25-2.el9_7, python3.12 3.12.12-1.el9_7, python3-idle 3.9.25-2.el9_7, python3-test 3.9.25-2.el9_7, python3-tkinter 3.9.25-2.el9_7, python3.12-idle 3.12.12-1.el9_7, +2 morefixed: vendor fix RHSA-2025:23342
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) python3-idle 3.12.12-1.el10_1, python3-test 3.12.12-1.el10_1fixed: vendor fix RHSA-2025:23940
-
Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) python3-idle 3.12.9-2.el10_0.4, python3-test 3.12.9-2.el10_0.4fixed: vendor fix RHSA-2026:0353
-
Red Hat Enterprise Linux CRB (v. 8) python3.12 3.12.12-1.el8_10, python3.12-idle 3.12.12-1.el8_10, python3.12-test 3.12.12-1.el8_10, python3.12-tkinter 3.12.12-1.el8_10, pytest 6.0.2-2.module+el8.9.0+19644+d68f775d, Cython 0.29.21-5.module+el8.9.0+19644+d68f775d, +20 morefixed: vendor fix RHSA-2025:23530
-
Red Hat Hardened Images python3 3.14.4-1.hum1, python3.14 3.14.4-1.hum1, python3.11 3.11.15-4.hum1, python3.12 3.12.13-3.hum1, python3.13 3.13.13-1.hum1, python3-idle 3.14.4-1.hum1, +22 morefixed: vendor fix RHSA-2026:7661
-
Red Hat Update Infrastructure 5 rhui5 1768221100, rhui5 1768221107, rhui5 1768296285, rhui5 1768377012fixed: vendor fix RHSA-2026:0685
-
Red Hat Ceph Storage 7 rhceph 1769511650, rhceph 1769512818, rhceph 1769513068, rhceph 1769514555, rhceph 1769523636 Red Hat Ceph Storage 8 rhceph 1768902743, rhceph 1768903190, rhceph 1768903749, rhceph 1768907469, rhceph 1768915405not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 12 mo ago
Exploit prediction
0.47% chance of exploitation in the next 30 days, higher than 40% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6p referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
| OSV | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libpython | <3.9.24 >=3.10.0, <3.10.19 >=3.11.0, <3.11.14 >=3.12.0, <3.12.12 >=3.13.0, <3.13.10 >=3.14.0, <3.14.1 |
3.9.24 3.10.19 3.11.14 3.12.12 3.13.10 3.14.1 |
| bitnami | python | <3.9.24 >=3.10.0, <3.10.19 >=3.11.0, <3.11.14 >=3.12.0, <3.12.12 >=3.13.0, <3.13.10 >=3.14.0, <3.14.1 |
3.9.24 3.10.19 3.11.14 3.12.12 3.13.10 3.14.1 |
| bitnami | python-min | <3.9.24 >=3.10.0, <3.10.19 >=3.11.0, <3.11.14 >=3.12.0, <3.12.12 >=3.13.0, <3.13.10 >=3.14.0, <3.14.1 |
3.9.24 3.10.19 3.11.14 3.12.12 3.13.10 3.14.1 |
Affected products
- Python Software Foundation CPython
Classification
- Weakness
-
- CWE-1285 Improper Validation of Specified Index, Position, or Offset in Input
References
-
github.com
/python/cpython/pull/139702
patch, web
-
github.com
/python/cpython/commit/162997bb70e067668c039700141770687bc8f267
patch, web
-
github.com
/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6
patch, web
-
github.com
/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46
patch, web
-
github.com
/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196
patch, web
-
github.com
/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4
patch, web
-
github.com
/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388
patch, web
-
github.com
/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3
patch, web
-
github.com
/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6p
technical-description, exploit, web
-
mail.python.org
/archives/list/security-announce@python.org/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/
vendor-advisory, web
-
github.com
/psf/advisory-database/blob/main/advisories/python/PSF-2025-12.json
vendor-advisory, web
-
github.com
/python/cpython/issues/139700
issue-tracking, web
-
nvd.nist.gov
/vuln/detail/CVE-2025-8291
web
Sources
- CVE List CVE-2025-8291
- NVD CVE-2025-8291
- OSV BIT-libpython-2025-8291
- OSV BIT-python-2025-8291
- OSV BIT-python-min-2025-8291
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.