CVE-2026-22184

Published: January 9, 2026Last modified: January 19, 2026

Description

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.

Severity score breakdown

ParameterValue
Base score9.8
Attack VectorNETWORK
Attack complexityLOW
Privileges requiredNONE
User interactionNONE
ScopeUNCHANGED
ConfidentialityHIGH
Integrity impactHIGH
Availability impactHIGH
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Notes

the issue is with `untgz` utility in `contrib`. We do not build it.

Status

ProductReleasePackageStatus
Alpaquita Linux23 LTSzlibNot affected (1.2.13-r0)
25 LTSzlibNot affected (1.3.1-r2)
StreamzlibNot affected (1.2.13-r0)
Hardened Containers23 LTSzlibNot affected (1.2.13-r0)
25 LTSzlibNot affected (1.3.1-r2)
StreamzlibNot affected (1.2.13-r0)

References

ON THIS PAGE