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

CVE-2021-35515: Excessive Iteration

July 13, 2021 (updated November 7, 2023)

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.

References

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

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

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-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:27 +0000.