Out-of-bounds Write Affecting zlib package, versions [1.3.2,1.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.5% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-ZLIB-22840482
  • published24 Nov 2026
  • disclosed3 Sept 2026
  • creditAli Firas, Michael Mullins

Introduced: 3 Sep 2026

CVE-2026-85091  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade zlib to version 1.4 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via the gz_write() function in gzwrite.c. An attacker who can cause the underlying write() to fail can trigger the flaw by making a subsequent gz write call, which uses the stale strm.next_in pointer to write past a heap allocation and corrupt memory. In versions before 1.3.1.2, the failed write must be followed by a gzclearerr() call.

CVSS Base Scores

version 4.0
version 3.1