CVE-2026-22184: zlib <= 1.3.1.2 untgz Global Buffer Overflow in TGZfname()
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
zlib/contrib/untgzto a version that resolves this vulnerability.Fixed in 1.3.1.2 - Remove
Remove
zlib/contrib/untgzfrom your environment.Uninstall/remove the standalone demonstration utility under contrib/untgz (untgz/TGZfname) because the global buffer overflow exists in this utility and does not affect the core zlib compression library.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-22184?
CVE-2026-22184 is categorized as a critical vulnerability due to the potential for a global buffer overflow.
How do I fix CVE-2026-22184?
To remediate CVE-2026-22184, upgrade zlib to version 1.3.1.3 or later.
What systems are affected by CVE-2026-22184?
CVE-2026-22184 affects zlib versions up to and including 1.3.1.2.
What is the nature of the vulnerability in CVE-2026-22184?
CVE-2026-22184 involves a global buffer overflow caused by unbounded copying of user-supplied data.
Can CVE-2026-22184 be exploited remotely?
Yes, CVE-2026-22184 can potentially be exploited remotely if the vulnerable utility is exposed.