Global Buffer Overflow in zlib's untgz Utility
CVE-2026-22184

4.6MEDIUM

Key Information:

Status
Vendor
CVE Published:
7 January 2026

Badges

πŸ“ˆ Score: 367πŸ‘Ύ Exploit Exists🟑 Public PoC

What is CVE-2026-22184?

CVE-2026-22184 is a global buffer overflow vulnerability found in the untgz utility of zlib, a widely used software library for data compression. This vulnerability affects zlib versions up to and including 1.3.1.2. The core issue lies in the TGZfname() function, which inadequately handles the size of an attacker-supplied archive name. The function utilizes an unbounded strcpy() call to copy this input into a fixed-size 1024-byte static buffer, without performing any length validation. If an archive name exceeds this buffer size, it triggers an out-of-bounds write, potentially leading to critical memory corruption issues.

Organizations utilizing zlib are at risk of various negative outcomes stemming from this vulnerability. Due to the potential for memory corruption, affected systems may experience denial of service conditions, and in more severe cases, the overflow could allow attackers to execute arbitrary code. The exploitation of this vulnerability can have significant implications, with ramifications depending on the specific compiler, build flags, architecture, and memory layout involved in the system environment.

Potential impact of CVE-2026-22184

  1. Memory Corruption and Denial of Service: The buffer overflow could lead to unpredictable behavior of the affected application, resulting in crashes or service interruptions that can compromise system availability.

  2. Arbitrary Code Execution: Exploitors may leverage this vulnerability to execute arbitrary code on vulnerable systems, leading to further compromise and the potential for attackers to gain unauthorized access to sensitive data or control over the system.

  3. Widespread Vulnerability due to Library Use: Given that zlib is a foundational component utilized by numerous applications and systems for data compression, the exploitation of this vulnerability may have far-reaching consequences, making multiple environments susceptible to attack.

Affected Version(s)

zlib 0 <= 1.3.1.2

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
4.6
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • 🟑

    Public PoC available

  • πŸ‘Ύ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Ron Edgerson
.