bzip2 allows remote attackers to cause a denial of service (hard drive consumption) via a crafted bzip2 file that causes an infinite loop (a
bzip2 allows remote attackers to cause a denial of service (hard drive consumption) via a crafted bzip2 file that causes an infinite loop (a.k.a "decompression bomb").
- Published
- May 19, 2005
- Updated
- Jun 16, 2026
- EPSS
- 6.2% · 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
22
Monitor
Low priority for now.
- CVSS
- 20 / 40 · 5.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 6.2%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| bzip | bzip2 | cpe:2.3:a:bzip:bzip2 |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| apple | mac os x | cpe:2.3:o:apple:mac_os_x |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apple mac os xbefore 10.4.11
- bzip bzip2before 1.0.3
- canonical ubuntu linux4.10
- canonical ubuntu linux5.04
- debian debian linux3.0
- debian debian linux3.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | bzip2 | before 1.0.2-7 | 1.0.2-7 |
| Debian:3.0 | bzip2 | before 1.0.2-1.woody5 | 1.0.2-1.woody5 |
| Red Hat:enterprise_linux:3::as | bzip2 | before 0:1.0.2-11.EL3.4 | 0:1.0.2-11.EL3.4 |
| Red Hat:enterprise_linux:3::as | bzip2-debuginfo | before 0:1.0.2-11.EL3.4 | 0:1.0.2-11.EL3.4 |
| Red Hat:enterprise_linux:3::as | bzip2-devel | before 0:1.0.2-11.EL3.4 | 0:1.0.2-11.EL3.4 |
| Red Hat:enterprise_linux:3::as | bzip2-libs | before 0:1.0.2-11.EL3.4 | 0:1.0.2-11.EL3.4 |
| Red Hat:enterprise_linux:4::as | bzip2 | before 0:1.0.2-13.EL4.3 | 0:1.0.2-13.EL4.3 |
| Red Hat:enterprise_linux:4::as | bzip2-debuginfo | before 0:1.0.2-13.EL4.3 | 0:1.0.2-13.EL4.3 |
| Red Hat:enterprise_linux:4::as | bzip2-devel | before 0:1.0.2-13.EL4.3 | 0:1.0.2-13.EL4.3 |
| Red Hat:enterprise_linux:4::as | bzip2-libs | before 0:1.0.2-13.EL4.3 | 0:1.0.2-13.EL4.3 |
Same product
bzip: all recordsOther highest-scoring records for the same primary product.
- CVE-2019-12900BZ2_decompress in decompress.c in bzip2 through 1.0.6 has an out-of-bounds write when there are many selectors.41Plan
- CVE-2016-3189Use-after-free vulnerability in bzip2recover in bzip2 1.0.6 allows remote attackers to cause a denial of service (crash) via a crafted bzip231Monitor
- CVE-2010-0405Integer overflow in the BZ2_decompress function in decompress.c in bzip2 and libbzip2 before 1.0.6 allows context-dependent attackers to cau21Monitor
- CVE-2002-0759bzip2 before 1.0.2 in FreeBSD 4.5 and earlier, OpenLinux 3.1 and 3.1.1, and possibly other operating systems, does not use the O_EXCL flag t20Monitor
- CVE-2011-4089The bzexe command in bzip2 1.0.5 and earlier generates compressed executables that do not properly handle temporary files during extraction,18Monitor
- CVE-2008-1372bzlib.c in bzip2 before 1.0.5 allows user-assisted remote attackers to cause a denial of service (crash) via a crafted file that triggers a 18Monitor
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 |
|---|---|---|
| debian:bzip2 | 1.0.2-7 · Debian:12 | Package registry (OSV) |
| red hat:bzip2 | 0:1.0.2-11.EL3.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:bzip2-debuginfo | 0:1.0.2-11.EL3.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:bzip2-devel | 0:1.0.2-11.EL3.4 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:bzip2-libs | 0:1.0.2-11.EL3.4 · Red Hat:enterprise_linux:3::as | 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
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- P
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
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
- ftp://patches.sgi.com/support/free/security/advisories/20060301-01.U.asc
- docs.info.apple.com/article.html?artnum=307041
- lists.apple.com/archives/security-announce/2007/Nov/msg00002.html
- secunia.com/advisories/15447
- secunia.com/advisories/19183
- secunia.com/advisories/27274
- secunia.com/advisories/27643
- sunsolve.sun.com/search/document.do?assetkey=1-26-103118-1
- sunsolve.sun.com/search/document.do?assetkey=1-66-200191-1
- www.debian.org/security/2005/dsa-741
- www.fedoralegacy.org/updates/FC2/2005-11-14-FLSA_2005_158801__Updated_bzip2_packages_fix_security_issues.html
- www.redhat.com/support/errata/RHSA-2005-474.html
- www.securityfocus.com/bid/13657
- www.securityfocus.com/bid/26444
- www.us-cert.gov/cas/techalerts/TA07-319A.html
- www.vupen.com/english/advisories/2007/3525
- www.vupen.com/english/advisories/2007/3868
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10700
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A749
- usn.ubuntu.com/127-1/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.