cve.bz

CVE-2025-8291 python software foundation cpython

4.3 mediumEPSS 0.7%

Medium (4.3) in python software foundation cpython. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.7% (up from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-10-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1285 Improper Validation of Specified Index, Position, or Offset in Input
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-8291 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-8291?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-8291?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-8291 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.9.24
Python Software Foundation CPythonfrom 3.10.0 before 3.10.19
Python Software Foundation CPythonfrom 3.11.0 before 3.11.14
Python Software Foundation CPythonfrom 3.12.0 before 3.12.12
Python Software Foundation CPythonfrom 3.13.0 before 3.13.10
Python Software Foundation CPythonfrom 3.14.0 before 3.14.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pypy37.3.5+dfsg-2+deb11u5DLA-4354-1
Debian11python3.93.9.2-1+deb11u4DLA-4445-1
Debian12python3.113.11.2-6+deb12u7DEBIAN-CVE-2025-8291
Debian12, 13pypy3, jythonno fix listedDEBIAN-CVE-2025-8291
Debian13python3.133.13.5-2+deb13u1DEBIAN-CVE-2025-8291
Debian14jython2.7.4-1DEBIAN-CVE-2025-8291
Debian14pypy37.3.21+dfsg-1DEBIAN-CVE-2025-8291
Debian14python3.143.14.0-3DEBIAN-CVE-2025-8291
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.12UBUNTU-CVE-2025-8291 USN-7886-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.9UBUNTU-CVE-2025-8291 USN-7886-1
Ubuntu25.10python3.133.13.7-1ubuntu0.1UBUNTU-CVE-2025-8291 USN-7886-2
Ubuntu25.10python3.14no fix listedUBUNTU-CVE-2025-8291
UbuntuPro:14.04:LTSpython3.43.4.3-1ubuntu1~14.04.7+esm17UBUNTU-CVE-2025-8291 USN-7886-1
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm8UBUNTU-CVE-2025-8291 USN-7886-1
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 2 morepython2.7no fix listedUBUNTU-CVE-2025-8291
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm20UBUNTU-CVE-2025-8291 USN-7886-1
UbuntuPro:18.04:LTSpython3.63.6.9-1~18.04ubuntu1.13+esm7UBUNTU-CVE-2025-8291 USN-7886-1
UbuntuPro:18.04:LTSpython3.73.7.5-2ubuntu1~18.04.2+esm8UBUNTU-CVE-2025-8291 USN-7886-1
UbuntuPro:18.04:LTSpython3.83.8.0-3ubuntu1~18.04.2+esm7UBUNTU-CVE-2025-8291 USN-7886-1
UbuntuPro:20.04:LTSpython3.83.8.10-0ubuntu1~20.04.18+esm3UBUNTU-CVE-2025-8291 USN-7886-1
2 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::appstreamPyYAML, python39-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.9.0+19644+d68f775dRHSA-2025:23530
Red Hatenterprise_linux:8::appstreammod_wsgi, python39-mod_wsgi0:4.7.1-7.module+el8.10.0+23075+0aa18782.1RHSA-2025:23530
Red Hatenterprise_linux:8::appstreamnumpy, python39-numpy, numpy-debugsource and 3 more0:1.19.4-3.module+el8.9.0+19644+d68f775dRHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python39-PyMySQL0:0.10.1-2.module+el8.9.0+19644+d68f775dRHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-cffi, python39-cffi, python-cffi-debugsource and 1 more0:1.14.3-2.module+el8.9.0+19644+d68f775dRHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-chardet, python39-chardet0:3.0.4-19.module+el8.9.0+19644+d68f775dRHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-cryptography, python39-cryptography, python-cryptography-debugsource and 1 more0:3.3.1-3.module+el8.10.0+21271+eccd1d86RHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-idna, python39-idna0:2.10-4.module+el8.10.0+21815+bb024982RHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-lxml, python39-lxml, python-lxml-debugsource and 1 more0:4.6.5-1.module+el8.9.0+19644+d68f775dRHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-ply, python39-ply0:3.11-10.module+el8.9.0+19644+d68f775dRHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-psutil, python39-psutil, python-psutil-debugsource and 1 more0:5.8.0-4.module+el8.9.0+19644+d68f775dRHSA-2025:23530
Red Hatenterprise_linux:8::appstreampython-psycopg2, python39-psycopg2, python39-psycopg2-doc and 3 more0:2.8.6-3.module+el8.10.0+21142+453d2b75RHSA-2025:23530
40 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morepython311, python311-core, python311-documentation3.11.14-150400.9.69.1SUSE-SU-2025:4257-2
SUSELinux Enterprise Micro 5.2, Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4 and 3 morepython3, python3-core3.6.15-150300.10.100.1SUSE-SU-2025:4368-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7python311-core3.11.14-150600.3.38.1SUSE-SU-2025:4297-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7python3-core3.6.15-150300.10.100.1SUSE-SU-2025:4368-1
SUSELinux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Package Hub 15 SP7python2.7.18-150000.89.1SUSE-SU-2025:4389-1
SUSELinux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Package Hub 15 SP7python, python-base2.7.18-150000.86.1SUSE-SU-2025:4313-1
SUSELinux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Package Hub 15 SP7python-base2.7.18-150000.89.2SUSE-SU-2025:4389-1
SUSELinux Enterprise Module for Public Cloud 15 SP4python311, python311-core3.11.14-150400.9.69.1SUSE-SU-2025:4257-1
SUSELinux Enterprise Module for Python 3 15 SP6python312, python312-core3.12.12-150600.3.37.1SUSE-SU-2025:4258-1
SUSELinux Enterprise Module for Python 3 15 SP6, Linux Enterprise Module for Python 3 15 SP7python311, python311-core3.11.14-150600.3.38.1SUSE-SU-2025:4297-1
SUSELinux Enterprise Module for Python 3 15 SP7python313, python313-core3.13.9-150700.4.26.1SUSE-SU-2025:4277-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python313, python313-core, python313-documentation3.13.11-160000.1.1SUSE-SU-2026:20125-1
6 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6python, python-doc2.7.18-150000.89.1SUSE-SU-2025:4389-1
openSUSELeap 15.6python, python-doc, python-base2.7.18-150000.86.1SUSE-SU-2025:4313-1
openSUSELeap 15.6python-base2.7.18-150000.89.2SUSE-SU-2025:4389-1
openSUSELeap 15.6python3, python3-core, python3-documentation3.6.15-150300.10.100.1SUSE-SU-2025:4368-1
openSUSELeap 15.6python310, python310-core, python310-documentation3.10.19-150400.4.91.3SUSE-SU-2025:4352-1
openSUSELeap 15.6python311, python311-core, python311-documentation3.11.14-150600.3.38.1SUSE-SU-2025:4297-1
openSUSELeap 15.6python312, python312-core, python312-documentation3.12.12-150600.3.37.1SUSE-SU-2025:4258-1
openSUSELeap 15.6python39, python39-core, python39-documentation3.9.24-150300.4.84.1SUSE-SU-2025:4221-1
openSUSELeap 16.0python313, python313-core, python313-nogil and 2 more3.13.11-160000.1.1openSUSE-SU-2026:20081-1
openSUSETumbleweedpython3103.10.19-2.1openSUSE-SU-2025:15768-1
openSUSETumbleweedpython3113.11.14-2.1openSUSE-SU-2025:15760-1
openSUSETumbleweedpython3123.12.12-2.1openSUSE-SU-2025:15742-1
4 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux8python3.12, python3.12-idle, python3.12-libs and 5 more3.12.12-1.el8_10ALSA-2026:0123
AlmaLinux8python39, python39-idle, python39-libs and 5 more3.9.25-2.module_el8.10.0+4083+53cad1fbALSA-2025:23530
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1ALSA-2025:23530
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+3248+c431e88cALSA-2025:23530
AlmaLinux8python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1ALSA-2025:23530
AlmaLinux8python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1ALSA-2025:23530
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+2780+a40f65e1ALSA-2025:23530
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+3248+c431e88cALSA-2025:23530
AlmaLinux8python39-chardet3.0.4-19.module_el8.6.0+2780+a40f65e1ALSA-2025:23530
AlmaLinux8python39-cryptography3.3.1-3.module_el8.10.0+3765+2f9a457dALSA-2025:23530
AlmaLinux8python39-idna2.10-4.module_el8.10.0+3849+a48d89aaALSA-2025:23530
AlmaLinux8python39-iniconfig1.1.1-2.module_el8.6.0+2780+a40f65e1ALSA-2025:23530
33 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.29.21-5.module+el8.10.0+1582+bc278001RLSA-2025:23530
Rocky Linux8Cython0:0.29.21-5.module+el8.10.0+1860+afcc1c71RLSA-2025:23530
Rocky Linux8PyYAML0:5.4.1-1.module+el8.10.0+1582+bc278001RLSA-2025:23530
Rocky Linux8PyYAML0:5.4.1-1.module+el8.10.0+1860+afcc1c71RLSA-2025:23530
Rocky Linux8PyYAML0:5.4.1-1.module+el8.9.0+1418+f0d66789RLSA-2025:23530
Rocky Linux8mod_wsgi0:4.7.1-7.module+el8.10.0+1582+bc278001RLSA-2025:23530
Rocky Linux8mod_wsgi0:4.7.1-7.module+el8.10.0+1860+afcc1c71RLSA-2025:23530
Rocky Linux8mod_wsgi0:4.7.1-7.module+el8.10.0+1978+d4f111ba.1RLSA-2025:23530
Rocky Linux8numpy0:1.19.4-3.module+el8.10.0+1582+bc278001RLSA-2025:23530
Rocky Linux8numpy0:1.19.4-3.module+el8.10.0+1860+afcc1c71RLSA-2025:23530
Rocky Linux8pybind110:2.7.1-1.module+el8.9.0+1357+a3b80af7RLSA-2025:23530
Rocky Linux8pytest0:6.0.2-2.module+el8.10.0+1582+bc278001RLSA-2025:23530
59 more for Rocky Linux in the JSON.
Azure Linux2python33.9.19-16AZL-68321
Azure Linux3python-pyno fix listedAZL-110507
Azure Linux3python33.12.9-5AZL-68318

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10python3.12-0:3.12.12-1.el10_1Fixed 2025-12-22RHSA-2025:23940
Red Hat Enterprise Linux 10.0 Extended Update Supportpython3.12-0:3.12.9-2.el10_0.4Fixed 2026-01-08RHSA-2026:0353
Red Hat Enterprise Linux 8python39:3.9-8100020251126112422.d47b87a4Fixed 2025-12-18RHSA-2025:23530
Red Hat Enterprise Linux 8python39-devel:3.9-8100020251126112422.d47b87a4Fixed 2025-12-18RHSA-2025:23530
Red Hat Enterprise Linux 8python3.12-0:3.12.12-1.el8_10Fixed 2026-01-06RHSA-2026:0123
Red Hat Enterprise Linux 9python3.12-0:3.12.12-1.el9_7Fixed 2025-12-18RHSA-2025:23323
Red Hat Enterprise Linux 9python3.9-0:3.9.25-2.el9_7Fixed 2025-12-18RHSA-2025:23342
Red Hat Enterprise Linux 9.4 Extended Update Supportpython3.12-0:3.12.1-4.el9_4.8Fixed 2026-01-08RHSA-2026:0354
Red Hat Enterprise Linux 9.6 Extended Update Supportpython3.12-0:3.12.9-1.el9_6.3Fixed 2026-01-08RHSA-2026:0355
Red Hat Ceph Storage 7rhceph/rhceph-7-rhel9:1769508455Fixed 2026-02-03RHSA-2026:1858
Red Hat Enterprise Linux 6pythonOut of support scope
Red Hat Enterprise Linux 7pythonOut of support scope
Red Hat Enterprise Linux 7python3Out of support scope
Red Hat Enterprise Linux 8python3Fix deferred
Red Hat Enterprise Linux 8python3.11Fix deferred
Red Hat Enterprise Linux 8python36:3.6/python36Fix deferred
Red Hat Enterprise Linux 9python3.11Fix deferred
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-amd-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-aws-nvidia-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-azure-amd-rhel9Fix deferred
14 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-8291.

References

Check your stackJSON