CVE-2026-22184

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

Configuration 1 (hide)

cpe:2.3:a:zlib:zlib:*:*:*:*:*:*:*:*

History

17 Jun 2026, 10:19

Type Values Removed Values Added
Summary
  • (es) Las versiones de zlib hasta la 1.3.1.2 inclusive incluyen un desbordamiento de búfer global en la utilidad untgz ubicada en contrib/untgz. La vulnerabilidad se limita a la utilidad de demostración independiente y no afecta a la biblioteca de compresión central de zlib. El fallo ocurre cuando un usuario ejecuta el comando untgz con un nombre de archivo excesivamente largo suministrado a través de la línea de comandos, lo que lleva a una escritura fuera de límites en un búfer global de tamaño fijo.

18 Mar 2026, 16:26

Type Values Removed Values Added
CVSS v2 : unknown
v3 : 9.8
v2 : unknown
v3 : 7.8

15 Jan 2026, 14:16

Type Values Removed Values Added
Summary (en) zlib versions up to and including 1.3.1.2 contain a global buffer overflow in the untgz utility. The TGZfname() function copies an attacker-supplied archive name from argv[] into a fixed-size 1024-byte static global buffer using an unbounded strcpy() call without length validation. Supplying an archive name longer than 1024 bytes results in an out-of-bounds write that can lead to memory corruption, denial of service, and potentially code execution depending on compiler, build flags, architecture, and memory layout. The overflow occurs prior to any archive parsing or validation. (en) 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.
CWE CWE-120

14 Jan 2026, 20:24

Type Values Removed Values Added
CPE cpe:2.3:a:zlib:zlib:*:*:*:*:*:*:*:*
CWE CWE-787
References () https://github.com/madler/zlib - () https://github.com/madler/zlib - Product
References () https://seclists.org/fulldisclosure/2026/Jan/3 - () https://seclists.org/fulldisclosure/2026/Jan/3 - Mailing List, Third Party Advisory
References () https://www.vulncheck.com/advisories/zlib-untgz-global-buffer-overflow-in-tgzfname - () https://www.vulncheck.com/advisories/zlib-untgz-global-buffer-overflow-in-tgzfname - Third Party Advisory
References () https://zlib.net/ - () https://zlib.net/ - Product
References () https://github.com/madler/zlib/issues/1142 - () https://github.com/madler/zlib/issues/1142 - Issue Tracking
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
First Time Zlib
Zlib zlib

12 Jan 2026, 08:16

Type Values Removed Values Added
References
  • () https://github.com/madler/zlib/issues/1142 -

07 Jan 2026, 21:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-01-07 21:16

Updated : 2026-06-17 10:19


NVD link : CVE-2026-22184

Mitre link : CVE-2026-22184

CVE.ORG link : CVE-2026-22184


JSON object : View

Products Affected

zlib

  • zlib
CWE
CWE-787

Out-of-bounds Write