PT-2026-2158 · Zlib · Zlib

Ron Edgerson

·

Published

2026-01-03

·

Updated

2026-05-18

·

CVE-2026-22184

CVSS v2.0

10

High

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions zlib versions up to and including 1.3.1.2
Description zlib versions up to and including 1.3.1.2 contain a global buffer overflow in the untgz utility. The TGZfname() function uses an unbounded strcpy() call to copy an attacker-supplied archive name from argv[] into a fixed-size 1024-byte static global buffer without validating the length. Providing an archive name exceeding 1024 bytes results in an out-of-bounds write, potentially leading to memory corruption, denial of service, and code execution, dependent on compiler, build flags, architecture, and memory layout. This overflow occurs before any archive parsing or validation.
Recommendations Update to zlib version 1.3.1.3 or higher. Monitor for untgz executions involving unusually long filenames in logs.

Exploit

Fix

DoS

RCE

Memory Corruption

Buffer Overflow

Weakness Enumeration

Related Identifiers

AZL-73964
AZL-73967
AZL-73991
AZL-73994
AZL-74003
BDU:2026-00376
CLEANSTART-2026-EP51501
CVE-2026-22184
MGASA-2026-0006

Affected Products

Zlib