Skip to content
OpenAdvisories
High · 7.5 CVE-2021-35517 EUVD-2021-1939GHSA-xqfj-vm6h-2x34

Apache Commons Compress 1.1 to 1.20 denial of service vulnerability

Published Jul 13, 2021 · Updated Oct 8, 2026 · Assigned by apache

Description

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Commons Compress 1.1 – < Apache Commons Compress* Apache Commons Compress*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcommons-compress-java 1.21-1 —
Debian 13 libcommons-compress-java 1.21-1 —
Debian 12 libcommons-compress-java 1.21-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libcommons-compress-java No fix yet —
Ubuntu 26.04 LTS libcommons-compress-java No fix yet —
Ubuntu 25.10 libcommons-compress-java No fix yet —
Ubuntu 24.04 LTS libcommons-compress-java No fix yet —
Ubuntu 22.04 LTS libcommons-compress-java No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libcommons-compress-java No fix yet —
Ubuntu 18.04 LTS libcommons-compress-java No fix yet —
Ubuntu 16.04 LTS libcommons-compress-java No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Rhev Manager 4 apache-commons-compress +1 1.21-1.2.el8ev RHSA-2022:5555
Red Hat Rhev Manager 4 ovirt-dependencies 4.5.2-1.el8ev RHSA-2022:5555
Red Hat Rhev Manager 4 ovirt-web-ui 1.9.0-1.el8ev RHSA-2022:5555
ReleasePackageFixed inAdvisory
SLES 15 SP3 apache-commons-compress 1.21-3.3.1 SUSE-SU-2021:2612-1
SLES 15 SP2 apache-commons-compress 1.21-3.3.1 SUSE-SU-2021:2612-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache-commons-compress 1.21-1.2 openSUSE-SU-2024:10618-1
openSUSE Leap 15.3 apache-commons-compress 1.21-3.3.1 openSUSE-SU-2021:2612-1
openSUSE Leap 15.2 apache-commons-compress 1.21-lp152.2.3.1 openSUSE-SU-2021:1115-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 apache-commons-compress No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.commons:commons-compress < 1.21 1.21 GHSA-xqfj-vm6h-2x34

Advisories 10

References