Buffer overflow in Zlib
CVE-2026-22184
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.004, 36.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Zlib
- Zlib Software — versions 0
Weakness classification (CWE)
References
- seclists.org/fulldisclosure/2026/Jan/3 (technical-description, Mailing List, Third Party Advisory, exploit)
- zlib.net/ (Product, product)
- github.com/madler/zlib (Product, product)
- www.vulncheck.com/advisories/zlib-untgz-global-buffer-overflow-in-tgzfname (Third Party Advisory, third-party-advisory)
- github.com/madler/zlib/issues/1142 (Issue Tracking)
- access.redhat.com/security/cve/CVE-2026-22184
- bugzilla.redhat.com/show_bug.cgi
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22184.json
- cert-portal.siemens.com/productcert/html/ssa-470355.html