CVE-2024-0450
Quoted zip-bomb protection for zipfile
Mitigation
- Upgrade CPython to 3.13.0a3 or later.
Who should check
- Anyone running Python Software Foundation CPython < 3.8.19; >= 3.9.0, < 3.9.19; >= 3.10.0, < 3.10.14; >= 3.11.0, < 3.11.8; >= 3.12.0, < 3.12.2; >= 3.13.0a1, < 3.13.0a3
Vulnerability facts
- Affected
- Python Software Foundation CPython < 3.8.19; >= 3.9.0, < 3.9.19; >= 3.10.0, < 3.10.14; >= 3.11.0, < 3.11.8; >= 3.12.0, < 3.12.2; >= 3.13.0a1, < 3.13.0a3
- Fixed in
- Python Software Foundation CPython 3.8.19, Python Software Foundation CPython 3.9.19, Python Software Foundation CPython 3.10.14, Python Software Foundation CPython 3.11.8, Python Software Foundation CPython 3.12.2, Python Software Foundation CPython 3.13.0a3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 6.2 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.43% chance of exploitation in 30 days (percentile 29, 2026-11-26)
- CWE
- CWE-405
- Modified
Description
An issue was found in the CPython `zipfile` module affecting versions 3.12.1, 3.11.7, 3.10.13, 3.9.18, and 3.8.18 and prior. The zipfile module is vulnerable to “quoted-overlap” zip-bombs which exploit the zip format to create a zip-bomb with a high compression ratio. The fixed versions of CPython makes the zipfile module reject zip archives which overlap entries in the archive.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Python Software Foundation CPython | < 3.8.19; >= 3.9.0, < 3.9.19; >= 3.10.0, < 3.10.14; >= 3.11.0, < 3.11.8; >= 3.12.0, < 3.12.2; >= 3.13.0a1, < 3.13.0a3 | — | 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-2024-0450. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-0450.md Affected: Python Software Foundation CPython < 3.8.19; >= 3.9.0, < 3.9.19; >= 3.10.0, < 3.10.14; >= 3.11.0, < 3.11.8; >= 3.12.0, < 3.12.2; >= 3.13.0a1, < 3.13.0a3 Fixed in: Python Software Foundation CPython 3.8.19, Python Software Foundation CPython 3.9.19, Python Software Foundation CPython 3.10.14, Python Software Foundation CPython 3.11.8, Python Software Foundation CPython 3.12.2, Python Software Foundation CPython 3.13.0a3 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/commit/66363b9a7b9fe7c99eba3a185b74c5fdbf842eba
- https://github.com/python/cpython/commit/fa181fcf2156f703347b03a3b1966ce47be8ab3b
- https://github.com/python/cpython/commit/a956e510f6336d5ae111ba429a61c3ade30a7549
- https://github.com/python/cpython/commit/30fe5d853b56138dbec62432d370a1f99409fc85
- https://github.com/python/cpython/commit/a2c59992e9e8d35baba9695eb186ad6c6ff85c51
- https://github.com/python/cpython/commit/d05bac0b74153beb541b88b4fca33bf053990183
- https://github.com/python/cpython/commit/70497218351ba44bffc8b571201ecb5652d84675
Other
- https://github.com/python/cpython/issues/109858
- https://www.bamsoftware.com/hacks/zipbomb/
- https://lists.debian.org/debian-lts-announce/2024/03/msg00024.html
- https://lists.debian.org/debian-lts-announce/2024/03/msg00025.html
- http://www.openwall.com/lists/oss-security/2024/03/20/5
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T3IGRX54M7RNCQOXVQO5KQKTGWCOABIM/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U5VHWS52HGD743C47UMCSAK2A773M2YE/
- https://security.netapp.com/advisory/ntap-20250411-0005/
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://lists.debian.org/debian-lts-announce/2024/11/msg00005.html
FAQ
Is CVE-2024-0450 being exploited?
There is no confirmed exploitation: CVE-2024-0450 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-0450?
Medium: CVSS 6.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-0450?
Python Software Foundation CPython < 3.8.19; >= 3.9.0, < 3.9.19; >= 3.10.0, < 3.10.14; >= 3.11.0, < 3.11.8; >= 3.12.0, < 3.12.2; >= 3.13.0a1, < 3.13.0a3.
Is there a fix for CVE-2024-0450?
Yes. Fixed in Python Software Foundation CPython 3.8.19, Python Software Foundation CPython 3.9.19, Python Software Foundation CPython 3.10.14, Python Software Foundation CPython 3.11.8, Python Software Foundation CPython 3.12.2, Python Software Foundation CPython 3.13.0a3. Upgrade CPython to 3.13.0a3 or later.
How do I check if I'm affected by CVE-2024-0450?
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.