Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.commons/commons-compress
  4. ›
  5. CVE-2021-35516

CVE-2021-35516: Uncontrolled Resource Consumption

July 13, 2021 (updated November 7, 2023)

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.

References

  • commons.apache.org/proper/commons-compress/security-reports.html
  • nvd.nist.gov/vuln/detail/CVE-2021-35516

Code Behaviors & Features

Detect and mitigate CVE-2021-35516 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.6 up to 1.20

Fixed versions

  • 1.21

Solution

Upgrade to version 1.21 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

maven/org.apache.commons/commons-compress/CVE-2021-35516.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:57 +0000.