Skip to content
OpenAdvisories
High · 7.5 CVE-2021-35515 EUVD-2021-1620GHSA-7hfm-57qf-j43q

Apache Commons Compress 1.6 to 1.20 denial of service vulnerability

Published Jul 13, 2021 · Updated Aug 4, 2024 · Assigned by apache

Description

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Commons Compress 1.6 – < 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-7hfm-57qf-j43q

Advisories 9

References