Description
zlib versions 1.3.1.2 through 1.3.2 contain a heap buffer overflow vulnerability in the gz_vacate() function when processing non-blocking gzwrite() operations with stale external buffer pointers. Attackers can trigger the overflow by calling gzprintf() or gzvprintf() after a write stall, causing an unchecked memmove() to write beyond the internal input buffer boundary.
Published: 2026-09-03
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a heap buffer overflow in the gz_vacate() function of zlib versions 1.3.1.2 through 1.3.2. When gzwrite() operations are performed in non‑blocking mode and the external buffer pointer becomes stale, the subsequent execution of gzprintf() or gzvprintf() triggers an unchecked memmove that writes beyond the boundary of the library's internal input buffer. This overflow permits an attacker to overwrite data on the heap, potentially leading to arbitrary code execution, process crash, or other integrity violations.

Affected Systems

The affected product is the zlib compression library released by its maintainers. Versions 1.3.1.2 up to and including 1.3.2 are vulnerable. All installations of zlib that link to those releases and use non‑blocking gzwrite calls are at risk.

Risk and Exploitability

The CVSS score of 8.3 reflects significant risk. The EPSS score is not reported, and the vulnerability is not yet listed in the CISA KEV catalog. The likely attack vector is a local or embedded context in which an application can invoke the vulnerable zlib API; preserving stale external buffer pointers across non‑blocking writes is required for exploitation. Because the condition depends on application‑level API usage, exploitation is more likely against software that frequently performs non‑blocking gzwrite operations and subsequently calls gzprintf or gzvprintf.

Generated by OpenCVE AI on September 3, 2026 at 09:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to zlib 1.3.3 or later, downloading the latest release from the official repository.
  • Rebuild and redeploy all applications that link against zlib to incorporate the fixed library.
  • If an immediate upgrade is not possible, disable non‑blocking gzwrite or avoid calling gzprintf/gzvprintf after a write stall until the library is updated.

Generated by OpenCVE AI on September 3, 2026 at 09:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 03 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 03 Sep 2026 01:15:00 +0000

Type Values Removed Values Added
Description zlib versions 1.3.1.2 through 1.3.2 contain a heap buffer overflow vulnerability in the gz_vacate() function when processing non-blocking gzwrite() operations with stale external buffer pointers. Attackers can trigger the overflow by calling gzprintf() or gzvprintf() after a write stall, causing an unchecked memmove() to write beyond the internal input buffer boundary.
Title zlib 1.3.1.2 through 1.3.2 Heap Buffer Overflow via gz_vacate
First Time appeared Zlib
Zlib zlib
Weaknesses CWE-787
CPEs cpe:2.3:a:zlib:zlib:*:*:*:*:*:*:*:*
Vendors & Products Zlib
Zlib zlib
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H'}

cvssV4_0

{'score': 8.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-03T13:21:30.355Z

Reserved: 2026-09-02T23:53:05.582Z

Link: CVE-2026-85091

cve-icon Vulnrichment

Updated: 2026-09-03T13:21:22.797Z

cve-icon NVD

Status : Received

Published: 2026-09-03T13:06:20.573

Modified: 2026-09-03T14:17:04.393

Link: CVE-2026-85091

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T10:30:12Z

Weaknesses