Lib/zipfile.py in Python through 3.7.2 allows remote attackers to cause a denial of service (resource consumption) via a ZIP bomb.
- Published
- Feb 4, 2020
- Updated
- Jun 16, 2026
- EPSS
- 5.5% · 93th percentile
- CWE
- CWE-400
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
32
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.5%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| netapp | active iq unified manager | cpe:2.3:a:netapp:active_iq_unified_manager |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux12.04
- canonical ubuntu linux14.04
- canonical ubuntu linux16.04
- canonical ubuntu linux18.04
- canonical ubuntu linux20.04
- netapp active iq unified managerall versions
- python python3.2 and later · up to 3.8 inclusive
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:11 | python2.7 | all versions | — |
| openSUSE:Leap 15.1 | python | before 2.7.17-lp151.10.17.1 | 2.7.17-lp151.10.17.1 |
| openSUSE:Leap 15.1 | python-base | before 2.7.17-lp151.10.17.1 | 2.7.17-lp151.10.17.1 |
| openSUSE:Leap 15.1 | python-doc | before 2.7.17-lp151.10.17.1 | 2.7.17-lp151.10.17.1 |
| openSUSE:Leap 15.1 | python3 | before 3.6.10-lp151.6.11.1 | 3.6.10-lp151.6.11.1 |
| openSUSE:Leap 15.1 | python3-base | before 3.6.10-lp151.6.11.1 | 3.6.10-lp151.6.11.1 |
| SUSE:HPE Helion OpenStack 8 | python | before 2.7.17-28.42.1 | 2.7.17-28.42.1 |
| SUSE:HPE Helion OpenStack 8 | python-base | before 2.7.17-28.42.1 | 2.7.17-28.42.1 |
| SUSE:HPE Helion OpenStack 8 | python-doc | before 2.7.17-28.42.1 | 2.7.17-28.42.1 |
| SUSE:HPE Helion OpenStack 8 | python-rpm-macros | before 20200207.5feb6c1-3.19.1 | 20200207.5feb6c1-3.19.1 |
| SUSE:HPE Helion OpenStack 8 | python3 | before 3.4.10-25.45.1 | 3.4.10-25.45.1 |
| SUSE:HPE Helion OpenStack 8 | python3-base | before 3.4.10-25.45.1 | 3.4.10-25.45.1 |
| SUSE:HPE Helion OpenStack 8 | shared-python-startup | before 0.1-1.3.1 | 0.1-1.3.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | python | before 2.7.17-7.35.1 | 2.7.17-7.35.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | python | before 2.7.17-7.38.1 | 2.7.17-7.38.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | python-base | before 2.7.17-7.35.1 | 2.7.17-7.35.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | python-base | before 2.7.17-7.38.1 | 2.7.17-7.38.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | python3 | before 3.6.10-3.47.2 | 3.6.10-3.47.2 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | python3-base | before 3.6.10-3.47.2 | 3.6.10-3.47.2 |
| SUSE:Linux Enterprise Server 12 SP5 | python36 | before 3.6.10-4.6.1 | 3.6.10-4.6.1 |
| SUSE:Linux Enterprise Server 12 SP5 | python36-base | before 3.6.10-4.6.1 | 3.6.10-4.6.1 |
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot47Plan
- CVE-2021-3177Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Pyth46Plan
- CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which al46Plan
- CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C45Plan
- CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| opensuse:python | 2.7.17-lp151.10.17.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python-base | 2.7.17-lp151.10.17.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python-doc | 2.7.17-lp151.10.17.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python3 | 3.6.10-lp151.6.11.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python3-base | 3.6.10-lp151.6.11.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| suse:python | 2.7.17-7.35.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP1 | Package registry (OSV) |
| suse:python-base | 2.7.17-7.35.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP1 | Package registry (OSV) |
| suse:python-doc | 2.7.17-28.42.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:python-rpm-macros | 20200207.5feb6c1-3.19.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:python3 | 3.6.10-3.47.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP1 | Package registry (OSV) |
| suse:python3-base | 3.6.10-3.47.2 · SUSE:Linux Enterprise Module for Basesystem 15 SP1 | Package registry (OSV) |
| suse:python36 | 3.6.10-4.6.1 · SUSE:Linux Enterprise Server 12 SP5 | Package registry (OSV) |
| suse:python36-base | 3.6.10-4.6.1 · SUSE:Linux Enterprise Server 12 SP5 | Package registry (OSV) |
| suse:shared-python-startup | 0.1-1.3.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Root cause
Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.
The bug in code
The whole CWE-400 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
function expand(node) { return node.children.map(expand);}Fixed
const MAX_DEPTH = 32;function expand(node, depth = 0) { if (depth > MAX_DEPTH) throw new Error("too deep"); return node.children.map((c) => expand(c, depth + 1));}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.opensuse.org/opensuse-security-announce/2020-03/msg00003.html
- lists.opensuse.org/opensuse-security-announce/2020-05/msg00041.html
- bugs.python.org/issue36260
- bugs.python.org/issue36462
- github.com/python/cpython/blob/master/Lib/zipfile.py
- python-security.readthedocs.io/security.html#archives-and-zip-bomb
- security.netapp.com/advisory/ntap-20200221-0003/
- usn.ubuntu.com/4428-1/
- www.python.org/news/security/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.