Bug 1981903 (CVE-2021-35517) - CVE-2021-35517 apache-commons-compress: excessive memory allocation when reading a specially crafted TAR archive
Summary: CVE-2021-35517 apache-commons-compress: excessive memory allocation when read...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-35517
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: 1981904 1981905 1983226 1983227 1983228 1983229 1983230 1983231 1992141
Blocks: 1981912
TreeView+ depends on / blocked
 
Reported: 2021-07-13 17:28 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-08-30 03:55 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 TAR archive, Compress can allocate large amounts of memory that leads to an out-of-memory error for small inputs. This flaw allows the mounting of a denial of service attack against services that use Compress' TAR package. The highest threat from this vulnerability is to system availability.
Clone Of:
Environment:
Last Closed: 2022-08-30 03:55:52 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:21:07 UTC
Red Hat Product Errata RHSA-2022:5555 0 None None None 2022-07-14 12:54:19 UTC

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

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

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

Affects: fedora-all [bug 1981905]


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

Affects: fedora-all [bug 1981904]

Comment 2 Garrett Tucker 2021-07-16 21:43:40 UTC
After analysis, a Denial of Service attack is possible via excessive memory allocated caused by a crafted tar archive. An ongoing method of allocating an array then trying to fill it, combined with a lack of checks of PAX header value size allowed for excessive memory allocation. Thus a specially crafted archive could force excessive memory allocation impacting availability of a system.

This flaw has been fixed in Version 1.21

Comment 13 errata-xmlrpc 2022-07-07 14:21:04 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:16 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 03:55:49 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-35517


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