Every CVE Search/ Get API key

CVE-2021-35515

Apache Commons Compress 1.6 to 1.20 denial of service vulnerability

7.5 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

11.6%Up 10.5 points since Jul 13, 2021
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2021-35515
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-834, CWE-835
Updated
2026-11-02
CVE List No score

Apache Commons Compress 1.6 to 1.20 denial of service vulnerability

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.

Record
CVE-2021-35515
Weakness
CWE-834
Updated
2026-11-02
EUVDEUVD-2021-1620 No score

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.

Record
EUVD-2021-1620
Updated
2026-11-03
GitHub AdvisoriesGHSA-7hfm-57qf-j43q 7.5

Excessive Iteration in Compress

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.

Record
GHSA-7hfm-57qf-j43q
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-834, CWE-835
Updated
2026-11-02
OSVAZL-45081 7.5

CVE-2021-35515 affecting package apache-commons-compress 1.19-3

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.

Record
AZL-45081
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-05
OSV 7.5

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.

Record
CVE-2021-35515
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 20 moreShow less
OSVDEBIAN-CVE-2021-35515 7.5

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.

Record
DEBIAN-CVE-2021-35515
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVGHSA-7hfm-57qf-j43q 7.5

Excessive Iteration in Compress

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.

Record
GHSA-7hfm-57qf-j43q
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-834, CWE-835
Updated
2026-11-02
OSVOESA-2021-1302 7.5

apache-commons-compress security update

The Apache Commons Compress library defines an API for working with ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200 and bzip2 files.

Security Fix(es):

When reading a specially crafted TAR 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' tar package.(CVE-2021-35517)

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.(CVE-2021-35516)

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.(CVE-2021-35515)

When reading a specially crafted ZIP 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' zip package.(CVE-2021-36090)

Record
OESA-2021-1302
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHLW-2026-685154d7989c42e9 5.5

Lightwell Security Advisory: commons-compress 1.9.0.rhlw-00005

Red Hat Lightwell has released org.apache.commons:commons-compress 1.9.0.rhlw-00005 with backported fixes for CVE-2018-11771, CVE-2021-35515, CVE-2021-35517, CVE-2021-36090, and CVE-2024-25710.

CVE-2018-11771: When reading a specially crafted ZIP archive, the read method of Apache Commons Compress 1.7 to 1.17's ZipArchiveInputStream can fail to return the correct EOF indication after the end of the stream has been reached. When combined with a java.io.InputStreamReader this can lead to an infinite stream, which can be used to mount a denial of service attack against services that use Compress' zip package.

CVE-2021-35515: 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.

CVE-2021-35517: When reading a specially crafted TAR 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' tar package.

CVE-2021-36090: When reading a specially crafted ZIP 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' zip package.

CVE-2024-25710: Apache Commons Compress: Denial of service caused by an infinite loop for a corrupted DUMP file

This patched artifact is a drop-in replacement for org.apache.commons:commons-compress 1.9.0 from Maven Central.

Record
RHLW-2026-685154d7989c42e9
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVRHSA-2022:5555 7.5

Red Hat Security Advisory: RHV Manager (ovirt-engine) [ovirt-4.5.1] security, bug fix and update

Record
RHSA-2022:5555
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2021-35515 7.5

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.

Record
UBUNTU-CVE-2021-35515
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVCLSA-2025-1764806869 No score

TuxCare security update for org.apache.commons:commons-compress (5 CVEs)

TuxCare rebuilt org.apache.commons:commons-compress to address 5 CVEs. Fixed in 1.20-tuxcare.1.

Record
CLSA-2025-1764806869
Updated
2026-11-02
OSVCLSA-2026-1767917314 No score

TuxCare security update for org.apache.commons:commons-compress (1 CVE)

TuxCare rebuilt org.apache.commons:commons-compress to address 1 CVE. Fixed in 1.19-tuxcare.1.

Record
CLSA-2026-1767917314
Updated
2026-11-02
OSVCLSA-2026-1784250509 No score

TuxCare security update for org.apache.commons:commons-compress (1 CVE)

TuxCare rebuilt org.apache.commons:commons-compress to address 1 CVE. Fixed in 1.18-tuxcare.1.

Record
CLSA-2026-1784250509
Updated
2026-11-02
OSVCLSA-2026-1784769559 No score

TuxCare security update for org.apache.commons:commons-compress (1 CVE)

TuxCare rebuilt org.apache.commons:commons-compress to address 1 CVE. Fixed in 1.8.1-tuxcare.1.

Record
CLSA-2026-1784769559
Updated
2026-11-02
OSVCLSA-2026-1785936779 No score

TuxCare security update for org.apache.commons:commons-compress (2 CVEs)

TuxCare rebuilt org.apache.commons:commons-compress to address 2 CVEs. Fixed in 1.14-tuxcare.1.

Record
CLSA-2026-1785936779
Updated
2026-11-02
OSVCLSA-2026-1785947990 No score

TuxCare security update for org.apache.commons:commons-compress (3 CVEs)

TuxCare rebuilt org.apache.commons:commons-compress to address 3 CVEs. Fixed in 1.15-tuxcare.1.

Record
CLSA-2026-1785947990
Updated
2026-11-02
OSVCLSA-2026-1792741304 No score

TuxCare security update for org.apache.commons:commons-compress (3 CVEs)

TuxCare rebuilt org.apache.commons:commons-compress to address 3 CVEs. Fixed in 1.9-tuxcare.1.

Record
CLSA-2026-1792741304
Updated
2026-11-02
OSVCLSA-2026-1792741671 No score

TuxCare security update for org.apache.commons:commons-compress (2 CVEs)

TuxCare rebuilt org.apache.commons:commons-compress to address 2 CVEs. Fixed in 1.12-tuxcare.2.

Record
CLSA-2026-1792741671
Updated
2026-11-02
OSVMGASA-2022-0009 No score

Updated osgi-core/apache-commons-compress packages fix security vulnerability

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. (CVE-2021-35515) 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. (CVE-2021-35516) When reading a specially crafted TAR 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' tar package. (CVE-2021-35517) When reading a specially crafted ZIP 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' zip package. (CVE-2021-36090)

Record
MGASA-2022-0009
Updated
2026-11-02
OSVopenSUSE-SU-2021:1115-1 No score

Security update for apache-commons-compress

This update for apache-commons-compress fixes the following issues:

  • Updated to 1.21
  • CVE-2021-35515: Fixed an infinite loop when reading a specially crafted 7Z archive. (bsc#1188463)
  • CVE-2021-35516: Fixed an excessive memory allocation when reading a specially crafted 7Z archive. (bsc#1188464)
  • CVE-2021-35517: Fixed an excessive memory allocation when reading a specially crafted TAR archive. (bsc#1188465)
  • CVE-2021-36090: Fixed an excessive memory allocation when reading a specially crafted ZIP archive. (bsc#1188466)

This update was imported from the SUSE:SLE-15-SP2:Update update project.

Record
openSUSE-SU-2021:1115-1
Updated
2026-11-02
OSVopenSUSE-SU-2021:2612-1 No score

Security update for apache-commons-compress

This update for apache-commons-compress fixes the following issues:

  • Updated to 1.21
  • CVE-2021-35515: Fixed an infinite loop when reading a specially crafted 7Z archive. (bsc#1188463)
  • CVE-2021-35516: Fixed an excessive memory allocation when reading a specially crafted 7Z archive. (bsc#1188464)
  • CVE-2021-35517: Fixed an excessive memory allocation when reading a specially crafted TAR archive. (bsc#1188465)
  • CVE-2021-36090: Fixed an excessive memory allocation when reading a specially crafted ZIP archive. (bsc#1188466)
Record
openSUSE-SU-2021:2612-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:10618-1 No score

apache-commons-compress-1.21-1.2 on GA media

These are all security issues fixed in the apache-commons-compress-1.21-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10618-1
Updated
2026-11-02
OSVROOT-APP-MAVEN-CVE-2021-35515 No score

CVE-2021-35515 in io.root.org.apache.commons:commons-compress - Patched by Root

Root has patched CVE-2021-35515 in the io.root.org.apache.commons:commons-compress package for Root:Maven. Multiple fixed versions available.

Record
ROOT-APP-MAVEN-CVE-2021-35515
Updated
2026-11-02
OSVSUSE-SU-2021:2612-1 No score

Security update for apache-commons-compress

This update for apache-commons-compress fixes the following issues:

  • Updated to 1.21
  • CVE-2021-35515: Fixed an infinite loop when reading a specially crafted 7Z archive. (bsc#1188463)
  • CVE-2021-35516: Fixed an excessive memory allocation when reading a specially crafted 7Z archive. (bsc#1188464)
  • CVE-2021-35517: Fixed an excessive memory allocation when reading a specially crafted TAR archive. (bsc#1188465)
  • CVE-2021-36090: Fixed an excessive memory allocation when reading a specially crafted ZIP archive. (bsc#1188466)
Record
SUSE-SU-2021:2612-1
Updated
2026-11-02

Affected products

Show 15 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
org.apache.commons:commons-compress
Maven
before 1.21
1.21
apache-commons-compress
Azure Linux:3
through 1.19-3 None known
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 5 CVEs
1.20 up to 1.20-tuxcare.1
1.20-tuxcare.1
org.apache.commons:commons-compress
TuxCare:Maven
1.19 up to 1.19-tuxcare.1
1.19-tuxcare.1
org.apache.commons:commons-compress
TuxCare:Maven
1.18 up to 1.18-tuxcare.1
1.18-tuxcare.1
org.apache.commons:commons-compress
TuxCare:Maven
1.8.1 up to 1.8.1-tuxcare.1
1.8.1-tuxcare.1
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 2 CVEs
1.14 up to 1.14-tuxcare.1
1.14-tuxcare.1
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 3 CVEs
1.15 up to 1.15-tuxcare.1
1.15-tuxcare.1
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 3 CVEs
1.9 up to 1.9-tuxcare.1
1.9-tuxcare.1
org.apache.commons:commons-compress
TuxCare:Maven
From an advisory covering 2 CVEs
1.12 up to 1.12-tuxcare.2, plus listed versions
1.12-tuxcare.1
1.12-tuxcare.2
Show 28 moreShow less
Affected packages
PackageAffectedFixed
libcommons-compress-java
Debian:12
before 1.21-1
1.21-1
libcommons-compress-java
Debian:13
before 1.21-1
1.21-1
libcommons-compress-java
Debian:14
before 1.21-1
1.21-1
org.apache.commons:commons-compress
Maven
before 1.21, plus listed versions
1.01.11.101.111.12
Show 19 moreShow less
1.131.141.151.161.16.11.171.181.191.21.201.31.41.4.11.51.61.71.81.8.11.9
1.21
osgi-core
Mageia:8
From an advisory covering 4 CVEs
before 8.0.0-1.mga8
8.0.0-1.mga8
apache-commons-compress
Mageia:8
From an advisory covering 4 CVEs
before 1.21-1.mga8
1.21-1.mga8
apache-commons-compress
openEuler:20.03-LTS-SP1
From an advisory covering 4 CVEs
before 1.21-1.oe1
1.21-1.oe1
apache-commons-compress
openEuler:20.03-LTS-SP2
From an advisory covering 4 CVEs
before 1.21-1.oe1
1.21-1.oe1
org.apache.commons:commons-compress
Red Hat Lightwell:Maven
From an advisory covering 5 CVEs
before 1.9.0.rhlw-00005, plus listed versions
1.01.11.21.31.4
Show 8 moreShow less
1.4.11.51.61.71.81.8.11.91.9.0
1.9.0.rhlw-00005
ovirt-web-ui
Red Hat:rhev_manager:4.4:el8
From an advisory covering 9 CVEs
before 0:1.9.0-1.el8ev
0:1.9.0-1.el8ev
ovirt-dependencies
Red Hat:rhev_manager:4.4:el8
From an advisory covering 9 CVEs
before 0:4.5.2-1.el8ev
0:4.5.2-1.el8ev
apache-commons-compress
Red Hat:rhev_manager:4.4:el8
From an advisory covering 9 CVEs
before 0:1.21-1.2.el8ev
0:1.21-1.2.el8ev
apache-commons-compress-javadoc
Red Hat:rhev_manager:4.4:el8
From an advisory covering 9 CVEs
before 0:1.21-1.2.el8ev
0:1.21-1.2.el8ev
io.root.org.apache.commons:commons-compress
Root:Maven
before 1.21-root.io.1
1.21-root.io.11.21-root.io.2
org.apache.commons:commons-compress
Root:Maven
before 1.21-aikido.2
1.21-aikido.2
apache-commons-compress
SUSE:Linux Enterprise Module for Development Tools 15 SP2
From an advisory covering 4 CVEs
before 1.21-3.3.1
1.21-3.3.1
apache-commons-compress
SUSE:Linux Enterprise Module for Development Tools 15 SP3
From an advisory covering 4 CVEs
before 1.21-3.3.1
1.21-3.3.1
libcommons-compress-java
Ubuntu:16.04:LTS
All versions, plus listed versions
1.9-11.10-11.10-2
None known
libcommons-compress-java
Ubuntu:18.04:LTS
All versions, plus listed versions
1.13-11.13-21.18-1~18.04
None known
libcommons-compress-java
Ubuntu:20.04:LTS
All versions, plus listed versions
1.18-31.19-1
None known
libcommons-compress-java
Ubuntu:22.04:LTS
All versions, plus listed versions
1.20-11.21-1
None known
libcommons-compress-java
Ubuntu:24.04:LTS
All versions, plus listed versions
1.23.0-11.24.0-11.25.0-1
None known
libcommons-compress-java
Ubuntu:25.10
All versions, plus listed versions
1.27.1-2
None known
libcommons-compress-java
Ubuntu:26.10
All versions, plus listed versions
1.27.1-2
None known
libcommons-compress-java
Ubuntu:26.04:LTS
All versions, plus listed versions
1.27.1-2
None known
apache-commons-compress
openSUSE:Leap 15.2
From an advisory covering 4 CVEs
before 1.21-lp152.2.3.1
1.21-lp152.2.3.1
apache-commons-compress
openSUSE:Leap 15.3
From an advisory covering 4 CVEs
before 1.21-3.3.1
1.21-3.3.1
apache-commons-compress
openSUSE:Tumbleweed
From an advisory covering 5 CVEs
before 1.21-1.2
1.21-1.2

History

History
RecordedChangedSources
affected
factsOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-35515 is a high vulnerability (CVSS 7.5) in Apache Commons Compress, published July 13, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 11.6%, the 96th percentile. Fixed in org.apache.commons:commons-compress 1.21.

References

Show 155 moreShow less
MoveEnter Open