Vulnerability · Published Jul 13, 2021 · Assigned by apache

CVE-2021-35515Apache Commons Compress 1.6 to 1.20 denial of service vulnerability

High 7.5

In plain English

A high-severity security flaw in Apache Commons Compress from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 11.6% (higher than 96% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)11.6%top 3.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

When reading a specially crafted 7Z archive, the construction of the list of codecs that decompress an entry can result in an infinite loop. This could be used to mount a denial of service attack against services that use Compress' sevenz package.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libcommons-compress-java1.21-1DEBIAN-CVE-2021-35515
Debian:13libcommons-compress-java1.21-1DEBIAN-CVE-2021-35515
Debian:14libcommons-compress-java1.21-1DEBIAN-CVE-2021-35515
Mavenorg.apache.commons:commons-compress1.21GHSA-7hfm-57qf-j43q
Ubuntu:22.04:LTSlibcommons-compress-javano fix listedUBUNTU-CVE-2021-35515
Ubuntu:24.04:LTSlibcommons-compress-javano fix listedUBUNTU-CVE-2021-35515
Ubuntu:25.10libcommons-compress-javano fix listedUBUNTU-CVE-2021-35515
Ubuntu:26.04:LTSlibcommons-compress-javano fix listedUBUNTU-CVE-2021-35515
Ubuntu:26.10libcommons-compress-javano fix listedUBUNTU-CVE-2021-35515

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Commons Compress 1.6 – before Apache Commons Compress*

Weakness: CWE-834

References