Red Hat VEX
RHVEX-CVE-2023-45853
zlib: integer overflow and resultant heap-based buffer overflow in zipOpenNewFileInZip4_6
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | minizip | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | minizip-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | zlib | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | zlib-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | zlib-static | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | minizip | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | minizip-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | zlib | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | zlib-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | zlib-static | All versions, no fix (out of support scope) |