CVE-2025-8291: python software foundation cpython
Vulnerability summary
CVE-2025-8291 is a medium (CVSS 4.3) vulnerability in python software foundation cpython. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 38.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 35 · Related 28Timeline
- 07-10-2025PublishedVulnerability first disclosed.
- 31-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · Red hatEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
EPSS trend
Probability
0.47%
Chance of exploitation in the next 30 days
Percentile
39%
Versus all other CVEs
30-day change
+0.09 pp
From 0.38% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundSecurity Research
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Redhat17 products
- python-unversioned-command< 0:3.12.12-1.el10_1 | < 0:3.12.9-2.el10_0.4
- python3< 0:3.12.12-1.el10_1 | < 0:3.12.9-2.el10_0.4
- python3-debug< 0:3.12.12-1.el10_1 | < 0:3.12.9-2.el10_0.4
- python3-devel< 0:3.12.12-1.el10_1 | < 0:3.12.9-2.el10_0.4
- python3-idle< 0:3.12.12-1.el10_1 | < 0:3.12.9-2.el10_0.4
Ubuntu12 products
- python2.7All versions (No fix recorded)
- python3.10< 3.10.12-1~22.04.12
- python3.11< 3.11.0~rc1-1~22.04.1~esm6
- python3.12< 3.12.3-1ubuntu0.9
- python3.13< 3.13.7-1ubuntu0.1
Chainguard6 products
- python-3.10< 3.10.19-r0
- python-3.11< 3.11.14-r0
- python-3.12< 3.12.12-r0
- python-3.13< 3.13.8-r1
- python-3.14< 3.14.0-r2
Debian5 products
- jythonAll versions (No fix recorded)
- pypy3All versions (No fix recorded) | < 7.3.21+dfsg-1
- python3.11< 3.11.2-6+deb12u7
- python3.13< 3.13.5-2+deb13u1 | < 3.13.11-1
- python3.14< 3.14.0-3
Wolfi5 products
- python-3.10< 3.10.19-r0
- python-3.11< 3.11.14-r0
- python-3.12< 3.12.12-r0
- python-3.13< 3.13.8-r1
- python-3.14< 3.14.0-r2
Suse4 products
- python-base&distro=SUSE Linux Enterprise Module for Package Hub 15 SP6< 2.7.18-150000.86.1
- python-base&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 2.7.18-150000.86.1
- python&distro=SUSE Linux Enterprise Module for Package Hub 15 SP6< 2.7.18-150000.86.1
- python&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 2.7.18-150000.86.1
Opensuse3 products
- python-base&distro=openSUSE Leap 15.6< 2.7.18-150000.86.1
- python-doc&distro=openSUSE Leap 15.6< 2.7.18-150000.86.1
- python&distro=openSUSE Leap 15.6< 2.7.18-150000.86.1
Python software foundation1 product
- cpython< 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
8 vendors · 53 products
References
37 links- mail.python.org/archives/list/security-announce@python.org/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/Vendor AdvisoryARTICLEREPORTAdvisory
Show all 37 references
- github.com/psf/advisory-database/blob/main/advisories/python/PSF-2025-12.jsonVendor AdvisoryAdvisory
- github.com/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6pTechnical DescriptionExploitEVIDENCE
- github.com/python/cpythonPACKAGE