Skip to main content

GNU gzip CVE-2026-41992

| EUVDEUVD-2026-40069 MEDIUM
Buffer Over-read (CWE-126)
2026-06-29 cvd@cert.pl GHSA-qxh4-rprf-2mmj
6.9
CVSS 4.0 · Vendor: cert
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local execution context or access to backend gzip batch processor
  2. Delivery
    Supply crafted LZW archive as first decompression argument
  3. Exploit
    Supply crafted LZH archive as second decompression argument
  4. Execution
    LZW pass writes attacker-influenced stale values into shared global array
  5. Persist
    LZH decoder consumes poisoned array values and reads past buffer boundary
  6. Impact
    Heap or stack memory contents disclosed to attacker

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer over-read prevention
Exploitation Conditions

Exploitation requires the attacker to control two input files processed sequentially within a single gzip -d invocation: the first file must be a specially crafted LZW-format (Unix compress) archive to poison the shared global array, and the second must be a specially crafted LZH-format archive to trigger the out-of-bounds read using the poisoned state - the ordering is mandatory. The CVSS 4.0 vector (AV:L/PR:N) confirms that no elevated privileges are required, but the attacker must be able to run the gzip binary locally or supply files to a backend that does so in batch mode. Exploitation is further limited by: (1) the local attack vector - remote exploitation requires a service intermediary that passes attacker-supplied files to gzip; (2) the specific two-file cross-format sequencing constraint (LZW then LZH in the same invocation); and (3) the absence of reinitialization in the affected build. Single-file gzip decompression invocations are not exploitable by this vulnerability.

Impact

The CVSS 4.0 base score of 6.9 reflects a meaningful but constrained vulnerability: local attack vector (AV:L) limits opportunistic exploitation, while low complexity (AC:L), no privileges required (PR:N), and high confidentiality impact (VC:H) indicate that exploitation, when access is available, is straightforward and damaging. The local vector is the primary limiting factor - exploitation cannot occur purely remotely without a backend service that passes attacker-supplied files to gzip in batch. No EPSS probability score, KEV listing, or public proof-of-concept has been provided in the available intelligence, so no public exploit identified at time of analysis. The CVSS 4.0 vector reports VI:N and VA:N, confirming this is a confidentiality-only issue - memory disclosure rather than code execution or denial of service, which reduces severity relative to a typical buffer overflow. Real-world risk is elevated in CI/CD pipelines, file decompression services, or archive processing backends that invoke gzip with untrusted multi-format inputs, where the AV:L constraint is effectively bypassed by the service architecture. Despite gzip's ubiquitous deployment footprint, the two-file cross-format precondition substantially narrows the exploitable attack surface.

Exploit ScenarioDerived

An attacker who controls files submitted to a backend service that invokes gzip for archive decompression - such as a CI/CD artifact processor or a file upload decompression endpoint - submits a crafted LZW archive followed by a crafted LZH archive as part of the same batch job. The gzip process decompresses the LZW file first, leaving attacker-controlled stale values in the shared global array, then decompresses the LZH file using those poisoned values, triggering an out-of-bounds read that may expose adjacent heap or stack memory contents to the attacker. No public proof-of-concept has been confirmed at time of analysis, though the CERT.pl disclosure describes the mechanics with sufficient detail to enable reproduction.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 29, 2026

Out-of-bounds read in GNU gzip's LZH decompression logic allows an unprivileged local attacker to disclose memory contents by supplying two specially crafted archives - an LZW file followed by an LZH file - in a single gzip -d invocation. The shared global decompression array, never reinitialized between files in the same process invocation, is poisoned by the LZW pass and subsequently causes the LZH decoder to read past the end of the allocated buffer, yielding high confidentiality impact per the CVSS 4.0 vector (VC:H). No public exploit or CISA KEV listing has been identified at time of analysis; the fix exists as an upstream source commit only, with no confirmed packaged release.

RemediationAI

Apply the upstream fix at commit 63dbf6b3b9e6e781df1a6a64e609b10e23969681 in the GNU gzip cgit repository (https://cgit.git.savannah.gnu.org/cgit/gzip.git/commit/?id=63dbf6b3b9e6e781df1a6a64e609b10e23969681). This is a source-level commit; a versioned packaged release incorporating this fix has not been independently confirmed from the available references - monitor the GNU gzip project page at https://www.gnu.org/software/gzip/ and downstream distribution security channels (Debian DSA, Red Hat RHSA, Ubuntu USN, Alpine secdb) for official patched packages. As a compensating control where patching is not immediately feasible, restrict gzip-based decompression pipelines from accepting untrusted LZW or LZH format inputs alongside each other in batch; processing files in separate single-file gzip invocations (rather than multi-file batch invocations) eliminates the cross-format state pollution pathway. This workaround carries the operational trade-off of increased subprocess overhead and does not fix the underlying flaw.

Affected VersionsENISA

gzip 0 ≤1.14

Affected Packages

euvd gzip no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GNU gzip, the foundational GNU compression utility ubiquitous across Unix and Linux environments, implements multiple legacy decompression algorithms including LZ77, LZW (Unix compress format), and LZH. The vulnerability arises from a design flaw where a global array is shared across all three decompression routines without being reinitialized between files processed in the same gzip process invocation. CWE-126 (Buffer Over-read) precisely classifies the root cause: the LZH decoder does not validate the contents of the shared global array before use, blindly following stale pointer or index values written during a prior LZW decompression pass, which causes reads to exceed the boundary of the allocated global buffer. The flaw is specific to multi-file batch decompression within a single invocation and is not triggered by processing a single file.

Know when Gzip gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (cert) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.2 MEDIUM

Local vector because attacker must supply controlled files to the gzip process; no privileges needed per PR:N; only confidentiality impacted via out-of-bounds read with no write or availability consequence.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Red Hat 3.6 LOW

Primary rating from Vendor (cert).

CVSS VectorVendor: cert

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

GNU gzip contains a global buffer overflow vulnerability in the LZH decompression logic caused by improper reuse of shared global state between different decompression formats within a single execution. GNU gzip maintains a global array that is shared across the LZ77, LZW, and LZH decompression routines and is not reinitialized between files processed in the same invocation. By decompressing a specially crafted LZW file followed by a specially crafted LZH file in a single gzip -d command, an attacker can poison the shared global state and subsequently trigger an out‑of‑bounds read in the LZH decoder. The LZH decompression logic follows stale values left in the shared array, causing reads past the end of the allocated global buffer.

This issue has been fixed in the commit 63dbf6b3b9e6e781df1a6a64e609b10e23969681

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Ubiquitous
core compression utility installed by default on virtually all Unix/Linux systems
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Affected
SLES15-SP6-CHOST-BYOS Affected
SLES15-SP6-CHOST-BYOS-Aliyun Affected
SLES15-SP6-CHOST-BYOS-Azure Affected
SLES15-SP6-CHOST-BYOS-EC2 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy