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.
Security readout for executives and security teams
Plain-English summary
A memory-safety flaw affects zlib's optional untgz demonstration program through version 1.3.1.2, not the core zlib library. An excessively long archive name supplied when launching untgz can overwrite memory, potentially causing serious disruption and limited data impact. Organizations using zlib only as a library are not exposed.
Executive priority
Prioritize rapid scoping rather than treating this as a fleet-wide zlib emergency. Escalate confirmed untgz deployments handling untrusted names to high priority. Systems using only the core library can be documented as outside the described vulnerable surface, subject to vendor confirmation.
Technical view
TGZfname() writes an excessively long command-line archive name beyond a fixed-size global buffer, classified as CWE-120 and CWE-787. The bundle assigns CVSS 3.1 8.6 but does not establish code execution. The vulnerable surface is contrib/untgz only. The supplied network attack vector conflicts with the documented command-line precondition.
Likely exposure
Exposure requires the standalone contrib/untgz utility from zlib 1.3.1.2 or earlier to be present and executed with attacker-influenced archive names. Merely linking or installing the core zlib compression library does not create exposure. Internet reachability is not established by the supplied evidence.
Exploitation context
The bundle marks KEV false and provides no evidence of exploitation in the wild. It links a public Full Disclosure item tagged as an exploit, indicating public exploitation material may exist. That increases opportunistic-abuse risk but does not establish active attacks or reliable remote exploitation.
Researcher notes
The stated CVSS vector describes network access without user interaction, while the narrative requires command-line execution of untgz with a long archive name. Treat this inconsistency as material. The bundle supports an out-of-bounds write but does not prove code execution, remote reachability, active exploitation, or a specific fixed version.
Mitigation direction
Stop using contrib/untgz for untrusted or externally supplied archive names.
Remove or restrict the demonstration utility where it is not operationally required.
Apply strict archive-name length validation before any necessary untgz invocation.
Check upstream and distributor guidance for a confirmed fixed release or backport.
Validation and detection
Inventory systems for untgz; do not infer exposure from core zlib presence alone.
Confirm whether installed untgz builds derive from zlib 1.3.1.2 or earlier.
Determine whether users, automation, or services pass untrusted archive names to untgz.
Review crashes and memory-corruption indicators involving untgz.
Verify vendor package disposition before closing remediation findings.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-120: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
4ADP providers
10Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: pocAutomatable: yesTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-120 · source CWE mapping
Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.