cve.bz

CVE-2021-35515 Infinite Loop

7.5 highEPSS 12%Fix available

High (7.5). EPSS 12% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.commons:commons-compress 1.21.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
12% (unchanged from 12% a week ago; 12% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
CWE-834 Excessive Iteration
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-35515 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-35515?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-35515?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-35515 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Commons Compressfrom 1.6 before Apache Commons Compress*

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7hfm-57qf-j43qMavenorg.apache.commons:commons-compress<1.211.21

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libcommons-compress-java1.21-1DEBIAN-CVE-2021-35515
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morelibcommons-compress-javano fix listedUBUNTU-CVE-2021-35515
Red Hatrhev_manager:4.4:el8apache-commons-compress, apache-commons-compress-javadoc0:1.21-1.2.el8evRHSA-2022:5555
Red Hatrhev_manager:4.4:el8ovirt-dependencies0:4.5.2-1.el8evRHSA-2022:5555
Red Hatrhev_manager:4.4:el8ovirt-web-ui0:1.9.0-1.el8evRHSA-2022:5555
SUSELinux Enterprise Module for Development Tools 15 SP2, Linux Enterprise Module for Development Tools 15 SP3apache-commons-compress1.21-3.3.1SUSE-SU-2021:2612-1
openSUSELeap 15.2apache-commons-compress1.21-lp152.2.3.1openSUSE-SU-2021:1115-1
openSUSELeap 15.3apache-commons-compress1.21-3.3.1openSUSE-SU-2021:2612-1
openSUSETumbleweedapache-commons-compress1.21-1.2openSUSE-SU-2024:10618-1
Azure Linux3apache-commons-compressno fix listedAZL-45081

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Fuse 7.11apache-commons-compressFixed 2022-07-07RHSA-2022:5532
Red Hat Virtualization Engine 4.4apache-commons-compress-0:1.21-1.2.el8evFixed 2022-07-14RHSA-2022:5555
Red Hat Decision Manager 7apache-commons-compressOut of support scope
Red Hat Enterprise Linux 7apache-commons-compressWill not fix
Red Hat Enterprise Linux 8eclipse:rhel8/apache-commons-compressWill not fix
Red Hat Enterprise Linux 8javapackages-tools:201801/apache-commons-compressWill not fix
Red Hat Enterprise Linux 9apache-commons-compressNot affected
Red Hat Process Automation 7apache-commons-compressOut of support scope
Red Hat Software Collectionsrh-maven36-apache-commons-compressWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-35515.

References

Check your stackJSON