Zlib vulnerabilities
15 vulnerabilities
Known vulnerabilities in Zlib, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.
PrioritiseCVE-2026-85091zlib +18 morezlib 1.2.11 through 1.3.2 Heap Buffer Overflow via Stale gzwrite Pointer After Failed Writezlib 1.2.11 through 1.3.2 contains a heap buffer overflow: after an underlying write() fails, gz_write() returns without resetting strm.next_in, leaving it pointed at the caller's buffer. A later gz* write call then derives a position from the stale pointer and writes past a heap allocation; any write() failure reaches it, including EPIPE on a blocking descriptor, and in versions before 1.3.1.2 the failed write must be followed by a gzclearerr() call.CVSS8.3HighEPSS0.50%RoutineCVE-2026-27171zlib +14 morezlib zlibzlib before 1.3.2 allows CPU consumption via crc32_combine64 and crc32_combine_gen64 because x2nmodp can do right shifts within a loop that has no termination condition.CVSS5.5MediumEPSS0.24%RoutineCVE-2026-22184zlib software · zlib +9 morezlib <= 1.3.1.2 untgz Global Buffer Overflow in TGZfname()zlib versions up to and including 1.3.1.2 include a global buffer overflow in the untgz utility located under contrib/untgz. The vulnerability is limited to the standalone demonstration utility and does not affect the core zlib compression library. The flaw occurs when a user executes the untgz command with an excessively long archive name supplied via the command line, leading to an out-of-bounds write in a fixed-size global buffer.CVSS8.6HighEPSS0.41%RoutineCVE-2023-45853smihica · pyminizip +32 moresmihica pyminizipMiniZip 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.CVSS9.8CriticalEPSS3.45%PrioritiseCVE-2022-37434apple · ipados +78 moreapple ipadoszlib through 1.2.12 has a heap-based buffer over-read or buffer overflow in inflate in inflate.c via a large gzip header extra field. NOTE: only applications that call inflateGetHeader are affected. Some common applications bundle the affected zlib source code but may be unable to call inflateGetHeader (e.g., see the nodejs/node reference).CVSS9.8CriticalEPSS19.24%PrioritiseCVE-2018-25032apple · mac_os_x +105 moreapple mac_os_xzlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.CVSS7.5HighEPSS51.73%PrioritiseCVE-2016-9843apple · iphone_os +54 moreapple iphone_osThe crc32_big function in crc32.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact via vectors involving big-endian CRC calculation.CVSS9.8CriticalEPSS6.00%RoutineCVE-2016-9842apple · iphone_os +47 moreapple iphone_osThe inflateMark function in inflate.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact via vectors involving left shifts of negative integers.CVSS8.8HighEPSS5.20%PrioritiseCVE-2016-9841apple · iphone_os +68 moreapple iphone_osinffast.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact by leveraging improper pointer arithmetic.CVSS9.8CriticalEPSS7.55%RoutineCVE-2016-9840apple · iphone_os +102 moreapple iphone_osinftrees.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact by leveraging improper pointer arithmetic.CVSS8.8HighEPSS4.88%RoutineCVE-2005-1849zlib +6 morezlib zlibinftrees.h in zlib 1.2.2 allows remote attackers to cause a denial of service (application crash) via an invalid file that causes a large dynamic tree to be produced.CVSS5.0MediumEPSS4.08%RoutineCVE-2005-2096zlib +14 morezlib zlibzlib 1.2 and later versions allows remote attackers to cause a denial of service (crash) via a crafted compressed stream with an incomplete code description of a length greater than 1, which leads to a buffer overflow, as demonstrated using a crafted PNG file.CVSS7.5HighEPSS5.63%RoutineCVE-2004-0797zlib +1 morezlib zlibThe error handling in the (1) inflate and (2) inflateBack functions in ZLib compression library 1.2.x allows local users to cause a denial of service (application crash).CVSS2.1LowEPSS0.47%PrioritiseCVE-2003-0107zlib +1 morezlib zlibBuffer overflow in the gzprintf function in zlib 1.1.4, when zlib is compiled without vsnprintf or when long inputs are truncated using vsnprintf, allows attackers to cause a denial of service or possibly execute arbitrary code.CVSS7.5HighEPSS25.99%PrioritiseCVE-2002-0059zlibzlib zlibThe decompression algorithm in zlib 1.1.3 and earlier, as used in many different utilities and packages, causes inflateEnd to release certain memory more than once (a "double free"), which may allow local and remote attackers to execute arbitrary code via a block of malformed compression data.CVSS9.8CriticalEPSS9.69%