CVE-2021-35516: Apache Commons Compress 1.6 to 1.20 denial of service vulnerability
Vulnerability summary
CVE-2021-35516 is a high (CVSS 7.5) vulnerability in apache software foundation apache commons compress. EPSS estimates a 12.37% chance of exploitation in the next 30 days, higher than 96.3% of scored vulnerabilities.
Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 12% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 4Timeline
- 13-07-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
When reading a specially crafted 7Z archive, Compress can be made to allocate large amounts of memory that finally leads to an out of memory error even for very small inputs. This could be used to mount a denial of service attack against services that use Compress' sevenz package.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · MavenEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
12.37%
Chance of exploitation in the next 30 days
Percentile
96%
Versus all other CVEs
30-day change
No change 0.00 pp
From 12.37% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-130Improper Handling of Length Parameter InconsistencyThe product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data.
- CWE-770Allocation of Resources Without Limits or ThrottlingThe product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard67 products
- eco-java-gradle-4.10All versions (No fix recorded)
- eco-java-gradle-4.10.1All versions (No fix recorded)
- eco-java-gradle-4.10.2All versions (No fix recorded)
- eco-java-gradle-4.10.3All versions (No fix recorded)
- eco-java-gradle-4.2All versions (No fix recorded)
Oracle21 products
- banking_digital_experience≥ 18.1, ≤ 18.3 | 19.1 | 19.2 | 20.1 | 21.1
- banking_enterprise_default_management2.7.0
- banking_party_management2.7.0
- business_process_management_suite12.2.1.3.0 | 12.2.1.4.0
- commerce_guided_search11.3.2
Netapp2 products
Apache1 product
- commons_compress≥ 1.6, ≤ 1.20
Apache software foundation1 product
- apache commons compress≥ 1.6, < Apache Commons Compress*
Debian1 product
- libcommons-compress-java< 1.21-1
Org.apache.commons1 product
- commons-compress< 1.21
Ubuntu1 product
- libcommons-compress-javaAll versions (No fix recorded)
8 vendors · 95 products
References
34 links- commons.apache.org/proper/commons-compress/security-reports.htmlX Refsource MISCREPORTAdvisoryWEBVendor Advisory
- www.openwall.com/lists/oss-security/2021/07/13/2Mailing ListX Refsource MLISTREPORTAdvisoryWEBThird Party Advisory