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. NOTE: pyminizip through 0.2.6 is also vulnerable because it bundles an affected zlib version, and exposes the applicable MiniZip code through its compress API.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://github.com/madler/zlib/pull/843 | patch issue tracking |
https://www.winimage.com/zLibDll/minizip.html | product |
https://github.com/madler/zlib/blob/ac8f12c97d1afd9bafa9c710f827d40a407d3266/contrib/README.contrib#L1-L4 | product |
https://chromium.googlesource.com/chromium/src/+/de29dd6c7151d3cd37cb4cf0036800ddfb1d8b61 | patch mailing list |
https://chromium.googlesource.com/chromium/src/+/d709fb23806858847131027da95ef4c548813356 | patch mailing list |
http://www.openwall.com/lists/oss-security/2023/10/20/9 | mailing list |
https://lists.debian.org/debian-lts-announce/2023/11/msg00026.html | third party advisory mailing list |
https://security.netapp.com/advisory/ntap-20231130-0009/ | third party advisory |
https://pypi.org/project/pyminizip/#history | release notes |
https://security.gentoo.org/glsa/202401-18 | third party advisory vendor advisory |
http://www.openwall.com/lists/oss-security/2024/01/24/10 | mailing list |