Bug 2244556 (CVE-2023-45853) - CVE-2023-45853 zlib: integer overflow and resultant heap-based buffer overflow in zipOpenNewFileInZip4_6
Summary: CVE-2023-45853 zlib: integer overflow and resultant heap-based buffer overflo...
Keywords:
Status: NEW
Alias: CVE-2023-45853
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2244559 2244557 2244558
Blocks: 2244555
TreeView+ depends on / blocked
 
Reported: 2023-10-16 23:28 UTC by Marco Benatto
Modified: 2024-06-08 08:28 UTC (History)
20 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the MiniZip component of the zlib package. When opening a new file, MiniZip doesn't properly validate the filename, comments, or extra fields length against the data type used to store this information. This may allow an attacker to craft a malicious ZIP file that will lead to an overflow on the length field. This value is further used in memory allocations and indexing, which can cause an out-of-bounds write, leading to heap corruption and possible arbitrary code execution.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:7626 0 None None None 2023-12-07 13:55:48 UTC

Description Marco Benatto 2023-10-16 23:28:22 UTC
MiniZip in zlib through 1.3 has an integer overflow and resultant heap-based buffer overflow in zipOpenNewFileInZip4_64 via a long filename, comment, or extra field. NOTE: MiniZip is not a supported part of the zlib product.

https://www.winimage.com/zLibDll/minizip.html
https://github.com/madler/zlib/pull/843
https://chromium.googlesource.com/chromium/src/+/d709fb23806858847131027da95ef4c548813356
https://chromium.googlesource.com/chromium/src/+/de29dd6c7151d3cd37cb4cf0036800ddfb1d8b61
https://github.com/madler/zlib/blob/ac8f12c97d1afd9bafa9c710f827d40a407d3266/contrib/README.contrib#L1-L4

Comment 1 Marco Benatto 2023-10-16 23:29:16 UTC
Created mingw-zlib tracking bugs for this issue:

Affects: fedora-all [bug 2244558]


Created zlib tracking bugs for this issue:

Affects: fedora-all [bug 2244557]

Comment 2 Marco Benatto 2023-10-16 23:30:28 UTC
Created BackupPC-XS tracking bugs for this issue:

Affects: epel-all [bug 2244559]

Comment 7 Marco Benatto 2023-10-26 14:54:28 UTC
Upstream commit for this issue:
https://github.com/madler/zlib/pull/843/commits/431e66398552effd82d5c0ea982a521821782ebd

Comment 12 errata-xmlrpc 2023-12-07 13:55:47 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

Via RHSA-2023:7626 https://access.redhat.com/errata/RHSA-2023:7626


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