CVE-2025-8291: Libpython · ZIP64 End of Central Directory (EOCD) Locator record offset not checked
Affects libpythonSource GCVE Database
Not known to be exploited · CVSS 4.3 Medium · fixed in 3.14.1 : update libpython when convenient.
Data as of 25 Nov 2026, 03:33 UTC
- Patch
- Available – fixed in 3.14.1, 3.13.10, 3.12.12 +3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Bitnamilibpythonpkg:bitnami/libpythonOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available that fixes this issue by adding validation of the ZIP64 EOCD Locator record offset while maintaining the original behavior of the module. Users should upgrade to one of the fixed versions: 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.10, or 3.14.1 to remediate this vulnerability.
Description
A vulnerability in the libpython 'zipfile' module involves improper validation of the ZIP64 End of Central Directory (EOCD) Locator record offset. The module does not verify the offset value and assumes the ZIP64 EOCD record is the previous record in the archive, which can cause inconsistent handling of ZIP archives compared to other implementations. This behavior is maintained in the fix, but now includes a check to ensure the offset matches the expected value.
References
- github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267 (opens in a new tab)
- github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46 (opens in a new tab)
- github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6 (opens in a new tab)
- github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196 (opens in a new tab)
- github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4 (opens in a new tab)
- github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388 (opens in a new tab)
- github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3 (opens in a new tab)
- github.com/python/cpython/issues/139700 (opens in a new tab)
- github.com/python/cpython/pull/139702 (opens in a new tab)
- mail.python.org/archives/list/security-announce@python.org/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/ (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-8291 (opens in a new tab)
- github.com/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6p (opens in a new tab)
- github.com/psf/advisory-database/blob/main/advisories/python/PSF-2025-12.json (opens in a new tab)