CVE-2026-22184 PUBLISHED

zlib <= 1.3.1.2 untgz Global Buffer Overflow in TGZfname()

Assigner: VulnCheck
Reserved: 06.01.2026 Published: 07.01.2026 Updated: 12.01.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.3

Product Status

Vendor zlib software
Product zlib
Versions Default: unaffected
  • affected from 0 to 1.3.1.2 (incl.)

Credits

  • Ron Edgerson finder

References

Problem Types

  • CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') CWE