Skip to content
OpenAdvisories
Medium · 4.6 CVE-2026-22184 EUVD-2026-1173GHSA-7687-3v4j-49fr

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

Published Jan 7, 2026 · Updated Sep 1, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
zlib software zlib ≤ 1.3.1.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 zlib 1:1.2.6.dfsg-1 —
Debian 13 zlib 1:1.2.6.dfsg-1 —
Debian 12 zlib 1:1.2.6.dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 zsync No fix yet —
Ubuntu 26.04 LTS zsync No fix yet —
Ubuntu 25.10 zsync No fix yet —
Ubuntu 22.04 LTS zsync No fix yet —
Ubuntu 20.04 LTS zsync No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 zlib 1.3.2-r0 —
Alpine v3.23 zlib 1.3.2-r0 —
Alpine v3.22 zlib 1.3.2-r0 —
Alpine v3.21 zlib 1.3.2-r0 —
Alpine v3.20 zlib 1.3.2-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 blosc +2 No fix yet —
Azure Linux 2 (CBL-Mariner) blosc +1 No fix yet —

Advisories 6

References