High

Excessive Iteration in Compress

  • Disclosed: 02.08.2021
  • Updated: 11.10.2026 12:21

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.commons:commons-compress < 1.21 1.21

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-834, CWE-835
Platform
Java / Kotlin (Maven)
Package
org.apache.commons:commons-compress
Disclosed
02.08.2021
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-7hfm-57qf-j43q - CC BY 4.0

Vulnerability history: org.apache.commons:commons-compress

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (11) in the archive
Total entries
11
First → latest
10.2018 02.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 5
  • Medium 6

Disclosures per year

  1. 2018: 1
  2. 2019: 2
  3. 2020: 0
  4. 2021: 4
  5. 2022: 1
  6. 2023: 1
  7. 2024: 2
  8. 2025: 0
  9. 2026: 0
Severity:
  1. Excessive Iteration in Compress this entry
    High · 7.5 CVE-2021-35515 < 1.21 1.21
  2. High · 7.5 CVE-2019-12402 >= 1.15, < 1.19 1.19

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.