CVE-2026-22184 Details
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.
A global buffer overflow vulnerability has been identified in zlib versions through 1.3.1.2, specifically within the untgz utility. The issue arises in the TGZfname() function, where an attacker can supply an archive name that is copied into a fixed-size 1024-byte static global buffer. This is done using an unbounded strcpy() call, without any length validation. As a result, an archive name longer than 1024 bytes can cause an out-of-bounds write, leading to memory corruption. This vulnerability can cause a denial-of-service, memory corruption of adjacent global objects, undefined behavior, and potentially code execution, depending on the compiler, architecture, build flags, and memory layout.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-22184 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2427688 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22184.json | redhat-SADP | |
| https://cert-portal.siemens.com/productcert/html/ssa-470355.html | siemens-SADP | |
| https://github.com/madler/zlib/issues/1142 | CVE | Issue Tracking |
| https://github.com/madler/zlib | [email protected] | Product |
| https://seclists.org/fulldisclosure/2026/Jan/3 | [email protected] | Mailing ListThird Party Advisory |
| https://www.vulncheck.com/advisories/zlib-untgz-global-buffer-overflow-in-tgzfname | [email protected] | Third Party Advisory |
| https://zlib.net/ | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | redhat-SADP |
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| zlib zlib | <= 1.3.1.2 |
CPE
Remediation
| |
Change History
15 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 1, 2026 | CVE Modified | CVE |
| Sep 1, 2026 | CVE Modified | siemens-SADP |
| Sep 1, 2026 | CVE Modified | redhat-SADP |
| Sep 1, 2026 | CVE Modified | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jul 14, 2026 | CVE Modified | siemens-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 18, 2026 | Modified Analysis | [email protected] |
| Jan 15, 2026 | CVE Modified | [email protected] |
| Jan 14, 2026 | Initial Analysis | [email protected] |
| Jan 12, 2026 | CVE Modified | CVE |
| Jan 7, 2026 | New CVE Received | [email protected] |