Contact us
Free tools · Vulnerability lookup

zlib 1.2.11 vulnerabilities

zlib 1.2.11 has 7 known vulnerabilities (3 critical, 3 high). Each one is ranked by real-world exploitation and severity, with the version that fixes it where one is known. Free, no account.

Free tier: 5 lookups per day, per IP. Need continuous estate-wide coverage? See the service.
An ecosystem (Debian:12, npm, PyPI, …) enables precise version-aware matching. Leave it blank for Windows / commercial software.

Cross-referencing the vulnerability databases…

Vulnerability report · checked 2026-10-13

zlib 1.2.11

no ecosystem · NVD keyword / CPE match
7
known vulnerabilities
3 critical 3 high 1 medium
high CVE-2018-25032 CVSS 7.5

zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.

fixed in 2511 EPSS 51.7% · p99 CWE-787 published 2022-03-25
critical CVE-2022-37434 CVSS 9.8

zlib 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).

fixed in 2511 EPSS 19.0% · p97 CWE-120 published 2022-08-05
critical CVE-2023-45853 CVSS 9.8

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.

fixed in 2511 EPSS 3.2% · p88 CWE-190 published 2023-10-14
critical CVE-2026-27820 CVSS 9.8

zlib is a Ruby interface for the zlib compression/decompression library. Versions 3.0.0 and below, 3.1.0, 3.1.1, 3.2.0 and 3.2.1 contain a buffer overflow vulnerability in the Zlib::GzipReader. The zstream_buffer_ungets function prepends caller-provided bytes ahead of previously produced output but fails to guarantee the backing Ruby string has enough capacity before the memmove shifts the existing data. This can lead to memory corruption when the buffer length exceeds capacity. This issue has been fixed in versions 3.0.1, 3.1.2 and 3.2.3.

fixed in 3.0.1 EPSS 0.8% · p54 CWE-120 published 2026-04-16
high CVE-2026-76844 CVSS 7.4

zlib 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.

EPSS 0.6% · p47 CWE-22 published 2026-08-24
high CVE-2026-22184 CVSS 7.8

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.

EPSS 0.4% · p34 CWE-120 published 2026-01-07
medium CVE-2023-6992 CVSS 4.0

Cloudflare version of zlib library was found to be vulnerable to memory corruption issues affecting the deflation algorithm implementation (deflate.c). The issues resulted from improper input validation and heap-based buffer overflow. A local attacker could exploit the problem during compression using a crafted malicious file potentially leading to denial of service of the software. Patches: The issue has been patched in commit 8352d10 https://github.com/cloudflare/zlib/commit/8352d108c05db1bdc5ac3bdf834dad641694c13c . The upstream repository is not affected.

fixed in 2023-11-16 EPSS 0.2% · p13 CWE-122 published 2024-01-04

Discovery: OSV.dev, NVD and Red Hat (MITRE-refined). Prioritisation: CISA KEV & EPSS. Findings are best-effort from public sources and are not a substitute for vendor advisories.

Not sure what to type? Start from the product

The software directory has a page for 1000 widely used products, from operating systems and firewalls to the npm and Python packages inside your applications, each with the versions already checked and the advisories they turned up.

Browse the directory

Scanning a whole estate?

Our Vulnerability Reporter service inventories your software and reports continuously.