Bug 1981895 (CVE-2021-35515) - CVE-2021-35515 apache-commons-compress: infinite loop when reading a specially crafted 7Z archive
Summary: CVE-2021-35515 apache-commons-compress: infinite loop when reading a speciall...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-35515
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1981896 1981897 1983210 1983211 1983212 1983213 1983214 1983215 1992141
Blocks: 1981912
TreeView+ depends on / blocked
 
Reported: 2021-07-13 17:21 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-08-30 02:26 UTC (History)
34 users (show)

Fixed In Version: apache-commons-compress-1.21
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in apache-commons-compress. 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 flaw allows the mounting of a denial of service attack against services that use Compress' SevenZ package. The highest threat from this vulnerability is to system availability.
Clone Of:
Environment:
Last Closed: 2022-08-30 02:26:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5532 0 None None None 2022-07-07 14:20:57 UTC
Red Hat Product Errata RHSA-2022:5555 0 None None None 2022-07-14 12:54:16 UTC

Description Guilherme de Almeida Suckevicz 2021-07-13 17:21:13 UTC
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.

References:
https://commons.apache.org/proper/commons-compress/security-reports.html
https://lists.apache.org/thread.html/r19ebfd71770ec0617a9ea180e321ef927b3fefb4c81ec5d1902d20ab%40%3Cuser.commons.apache.org%3E
http://www.openwall.com/lists/oss-security/2021/07/13/1

Comment 1 Guilherme de Almeida Suckevicz 2021-07-13 17:21:38 UTC
Created apache-commons-compress tracking bugs for this issue:

Affects: fedora-all [bug 1981896]


Created javapackages-bootstrap:202001/apache-commons-compress tracking bugs for this issue:

Affects: fedora-all [bug 1981897]

Comment 3 Garrett Tucker 2021-07-16 20:45:19 UTC
After analysis, a Denial of Service attack is possible via an infinite loop caused by a crafted 7Z archive. The construction of the list of codecs for decompression did not check for usage of the same codec more than once in the codec chain. Thus a specially crafted archive could force an infinite loop impacting availability of a system.

This flaw has been fixed in Version 1.21

Comment 13 errata-xmlrpc 2022-07-07 14:20:54 UTC
This issue has been addressed in the following products:

  Red Hat Fuse 7.11

Via RHSA-2022:5532 https://access.redhat.com/errata/RHSA-2022:5532

Comment 14 errata-xmlrpc 2022-07-14 12:54:14 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization Engine 4.4

Via RHSA-2022:5555 https://access.redhat.com/errata/RHSA-2022:5555

Comment 18 Product Security DevOps Team 2022-08-30 02:26:01 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-35515


Note You need to log in before you can comment on or make changes to this bug.