CVE-2026-22184: zlib <= 1.3.1.2 untgz Global Buffer Overflow in TGZfname()

Published Jan 7, 2026
·
Updated

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

Other sources

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.

— Red Hat

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.

— MITRE

Affected Software

5 affected components
zlib<=1.3.1.2
zlib zlib<=1.3.1.2
ubuntu/zsync*
ubuntu/zsync*
ubuntu/zsync*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade zlib/contrib/untgz to a version that resolves this vulnerability.

    Fixed in 1.3.1.2
  2. Remove

    Remove zlib/contrib/untgz from 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

Jan 7, 2026
CVE Published
via MITRE·08:25 PM
Data Sourced
via MITRE·08:25 PM
DescriptionWeakness
Data Sourced
via Red Hat·09:03 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·09:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeakness
Jan 9, 2026
Data Sourced
via Microsoft·09:08 AM
DescriptionSeverityWeakness
Jan 12, 2026
News Published
via The Hacker News·01:41 PM
Jan 14, 2026
Data Sourced
via NVD·08:24 PM
Affected Software
Updated
via NVD·08:24 PM
SeverityWeakness
Jan 15, 2026
Updated
via MITRE·02:12 PM
DescriptionWeakness
Updated
via NVD·02:16 PM
DescriptionSeverityWeakness
Jan 16, 2026
Event
via FIRST·12:00 AM
Mar 18, 2026
Updated
via NVD·04:26 PM
Severity
Event
via NVD·04:26 PM
Jun 30, 2026
Updated
via NVD·03:17 AM
SeverityWeakness
Nov 17, 2026
Updated
via OSV·06:21 PM
Affected Software
Nov 30, 2026
Updated
via OSV·09:15 AM
Severity
Updated
via OSV·04:30 PM
Severity

Frequently Asked Questions

1

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.

2

How do I fix CVE-2026-22184?

To remediate CVE-2026-22184, upgrade zlib to version 1.3.1.3 or later.

3

What systems are affected by CVE-2026-22184?

CVE-2026-22184 affects zlib versions up to and including 1.3.1.2.

4

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.

5

Can CVE-2026-22184 be exploited remotely?

Yes, CVE-2026-22184 can potentially be exploited remotely if the vulnerable utility is exposed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203