CVE-2026-22184

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

State
Published
Severity
4.6 Medium
Published
Jan 7, 2026
Updated
Sep 1, 2026
Reserved
Jan 6, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.04.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:L/SC:N/SI:N/SA:NVulnCheck
3.18.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:Hredhat-SADP

Weaknesses

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

Affected Products

ProductVersions
zlibzlib software
  • 1.3.1.2 and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.