Every CVE Search/ Get API key

CVE-2021-35516

Apache Commons Compress 1.6 to 1.20 denial of service vulnerability

7.5 HighFix available

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.

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

12.4%Up 11.3 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, 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.

Record
CVE-2021-35516
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-130, CWE-770
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, 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.

Record
CVE-2021-35516
Weakness
CWE-130
Updated
2026-11-02
EUVDEUVD-2021-1684 No score

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.

Record
EUVD-2021-1684
Updated
2026-11-03
GitHub AdvisoriesGHSA-crv7-7245-f45f 7.5

Improper Handling of Length Parameter Inconsistency in Compress

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.

Record
GHSA-crv7-7245-f45f
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-130, CWE-770
Updated
2026-11-02
OSVAZL-45144 7.5

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

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.

Record
AZL-45144
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, 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.

Record
CVE-2021-35516
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 13 moreShow less
OSVDEBIAN-CVE-2021-35516 7.5

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.

Record
DEBIAN-CVE-2021-35516
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-crv7-7245-f45f 7.5

Improper Handling of Length Parameter Inconsistency in Compress

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.

Record
GHSA-crv7-7245-f45f
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-130, CWE-770
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
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-35516 7.5

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.

Record
UBUNTU-CVE-2021-35516
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-1770941373 No score

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

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

Record
CLSA-2026-1770941373
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-35516 No score

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

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

Record
ROOT-APP-MAVEN-CVE-2021-35516
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 13 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
From an advisory covering 4 CVEs
1.19 up to 1.19-tuxcare.2, plus listed versions
1.19-tuxcare.1
1.19-tuxcare.2
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
Show 21 moreShow less
Affected packages
PackageAffectedFixed
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
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-35516 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 12.4%, the 96th percentile. Fixed in org.apache.commons:commons-compress 1.21.

References

Show 109 moreShow less
MoveEnter Open