Bug 1981900 (CVE-2021-35516) - CVE-2021-35516 apache-commons-compress: excessive memory allocation when reading a specially crafted 7Z archive
Summary: CVE-2021-35516 apache-commons-compress: excessive memory allocation when read...
Keywords:
Status: NEW
Alias: CVE-2021-35516
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: 1981901 1981902 1983165 1992141 1983162 1983163 1983164 1983166 1983173
Blocks: 1981912
TreeView+ depends on / blocked
 
Reported: 2021-07-13 17:25 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-12-01 03:29 UTC (History)
14 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, Compress can allocate large amounts of memory that leads to an out-of-memory error for very small inputs. 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:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2021-07-13 17:25:24 UTC
When reading a specially crafted 7Z 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' sevenz package.

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

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

Affects: fedora-all [bug 1981901]


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

Affects: fedora-all [bug 1981902]

Comment 3 Garrett Tucker 2021-07-16 17:16:20 UTC
After analysis, the flaw is excessive allocation of memory given a specially crafted 7Z Archive. The root cause was a function causing continuous, unnecessary allocation of file objects when reading a crafted 7Z archive. Given a specially crafted archive an attacker would be able to trigger a denial of service attack against a system


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