Incorrect Calculation of Buffer Size in Zlib - #VU171582

 

Incorrect Calculation of Buffer Size in Zlib - #VU171582

Published: December 1, 2026


Vulnerability identifier: #VU171582
CSH Severity: Medium
CVSS v4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-131
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to corrupt memory in an application that uses zlib to resynchronize a compressed stream.

The vulnerability exists due to incorrect buffer sizing in inflateSync() when resynchronizing a stream whose decompression window size is not yet known. A remote attacker can supply compressed input that reaches the affected recovery path to potentially cause writes past the allocated window and corrupt application memory.


Affected software

Zlib

Remediation

Install security update from vendor's website.

Zlib - update to 1.4

External References

Related Security Bulletins