cve.bz

CVE-2021-35517

7.5 highEPSS 11%Fix available

High (7.5). EPSS 11% 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 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.

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
11% (unchanged from 11% a week ago; 11% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-770 Allocation of Resources Without Limits or Throttling
CWE-130 Improper Handling of Length Parameter Inconsistency
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-35517 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-35517?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-35517?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-35517 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.

Badge for a README or a site

CVE-2021-35517

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-35517](https://cve.bz/cve/badge/CVE-2021-35517.svg)](https://cve.bz/cve/CVE-2021-35517)

HTML:

<a href="https://cve.bz/cve/CVE-2021-35517"><img src="https://cve.bz/cve/badge/CVE-2021-35517.svg" alt="CVE-2021-35517"></a>

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-xqfj-vm6h-2x34Mavenorg.apache.commons:commons-compress<1.211.21

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libcommons-compress-java1.21-1DEBIAN-CVE-2021-35517
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morelibcommons-compress-javano fix listedUBUNTU-CVE-2021-35517
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-44490

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-35517.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON