CVE-2025-8291
ZIP64 End of Central Directory (EOCD) Locator record offset not checked
Mitigation
- Upgrade CPython to 3.14.1 or later.
Who should check
- Anyone running Python Software Foundation 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
Vulnerability facts
- Affected
- Python Software Foundation 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
- Fixed in
- Python Software Foundation CPython 3.9.24, Python Software Foundation CPython 3.10.19, Python Software Foundation CPython 3.11.14, Python Software Foundation CPython 3.12.12, Python Software Foundation CPython 3.13.10, Python Software Foundation CPython 3.14.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.66% chance of exploitation in 30 days (percentile 47, 2026-11-26)
- CWE
- CWE-1285
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Python Software Foundation 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 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-8291. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-8291.md Affected: Python Software Foundation 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 Fixed in: Python Software Foundation CPython 3.9.24, Python Software Foundation CPython 3.10.19, Python Software Foundation CPython 3.11.14, Python Software Foundation CPython 3.12.12, Python Software Foundation CPython 3.13.10, Python Software Foundation CPython 3.14.1 Steps: 1. Search this machine and project for Python Software Foundation CPython: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/python/cpython/pull/139702
- https://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267
- https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6
- https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46
- https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196
- https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4
- https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388
- https://github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3
Exploits and PoCs
FAQ
Is CVE-2025-8291 being exploited?
There is no confirmed exploitation: CVE-2025-8291 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.66% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-8291?
Medium: CVSS 4.3 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2025-8291?
Python Software Foundation 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.
Is there a fix for CVE-2025-8291?
Yes. Fixed in Python Software Foundation CPython 3.9.24, Python Software Foundation CPython 3.10.19, Python Software Foundation CPython 3.11.14, Python Software Foundation CPython 3.12.12, Python Software Foundation CPython 3.13.10, Python Software Foundation CPython 3.14.1. Upgrade CPython to 3.14.1 or later.
How do I check if I'm affected by CVE-2025-8291?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.