CVE-2025-8291: medium-severity vulnerability in Python Software Foundation CPython
ZIP64 End of Central Directory (EOCD) Locator record offset not checked
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 4.3epss 0.5%
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:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Affected products
Python Software Foundation · CPythonRelated CVEs — Python Software Foundation CPython
In the same product, most dangerous first.
CVE-2024-7592HIGHQuadratic complexity parsing cookies with backslashesEPSS 2.3%CVE-2024-6232HIGHRegular-expression DoS when parsing TarFile headersEPSS 2.2%CVE-2024-12254HIGHUnbounded memory buffering in SelectorSocketTransport.writelines()EPSS 1.9%CVE-2025-13836MEDIUMExcessive read buffering DoS in http.clientEPSS 1.7%CVE-2025-0938MEDIUMURL parser allowed square brackets in domain namesEPSS 1.6%CVE-2025-4138HIGHBypassing extraction filter to create symlinks to arbitrary targets outside extraction directoryEPSS 1.5%
References
https://github.com/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6phttps://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2025-12.jsonhttps://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388https://github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3https://github.com/python/cpython/issues/139700https://github.com/python/cpython/pull/139702https://mail.python.org/archives/list/security-announce@python.org/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/