CVE-2026-45820

Published Jul 22, 2026 CVSS 4.0 · 6.6 Medium EPSS < 1% KEV · Not listed
Description
fflate through 0.8.2 is vulnerable to denial of service via an infinite loop in unzipSync(). A crafted ZIP archive with a central directory entry declaring compressed_size=0xFFFFFFFF (ZIP64 sentinel) but missing the required ZIP64 extra field tag 0x0001 causes z64e() to loop indefinitely due to out-of-bounds reads returning undefined, which coerces to 0, keeping the loop condition permanently true.

Analysis

AI-generated

Technical impact

The vulnerability is an infinite loop inside the unzipSync() function of the fflate library. A crafted ZIP archive that declares a compressed_size of 0xFFFFFFFF but omits the required ZIP64 extra field tag causes the z64e() routine to read undefined values. Because these resolve to 0, the loop never ends, resulting in a denial of service. The weakness is an example of uncontrolled resource consumption (CWE‑400) and an infinite loop (CWE‑835).

Affected Systems

The flaw affects the fflate JavaScript compression library distributed by 101arrowz. All versions up to and including 0.8.2 are vulnerable. Systems that use fflate to extract ZIP files, particularly server‑side code or client applications that accept untrusted archives, are impacted.

Risk and Exploitability

The CVSS v3 base score of 6.6 places the issue in the medium severity range. The EPSS score is below 1 % and the vulnerability is not currently listed in the CISA KEV catalog, suggesting that exploitation is unlikely at present. Based on the description, it is inferred that if an attacker can supply a malicious ZIP file to a process that calls unzipSync(), the delivery of such a file will trigger the endless loop and freeze the process. Because the vulnerability requires only a specially crafted archive and does not rely on elevated privileges, remote exploitation is possible wherever fflate is used to decompress externally supplied data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest fflate release that fixes the unzipSync loop issue.
  • Implement ZIP archive validation that checks for the presence of the ZIP64 extra field tag when a compressed_size of 0xFFFFFFFF is used; reject archives that do not conform before invoking unzipSync.
  • Add a timeout or resource limit around unzipSync calls so that if the decompress function runs longer than a predefined threshold, the operation is aborted and the process can recover.
  • If the library is used in environments that cannot upgrade promptly, temporarily disable unzipSync for untrusted archives or switch to a different library that performs stricter validation.

Generated by OpenCVE AI on August 4, 2026 at 15:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-px8p-9vwx-vf98 fflate unzipSync can enter an infinite loop when parsing malformed ZIP64 archives
History
Type Values Removed Values Added
CPEs cpe:2.3:a:101arrowz:fflate:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Title Infinite Loop Denial of Service in fflate's unzipSync via malformed ZIP64 Headers
Type Values Removed Values Added
Title Infinite Loop Denial of Service in fflate's unzipSync via malformed ZIP64 Headers
Type Values Removed Values Added
Title Denial of Service via Infinite Loop in fflate unzipSync
Type Values Removed Values Added
Title Denial of Service via Infinite Loop in fflate unzipSync
First Time appeared 101arrowz
101arrowz fflate
Vendors & Products 101arrowz
101arrowz fflate
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description fflate through 0.8.2 is vulnerable to denial of service via an infinite loop in unzipSync(). A crafted ZIP archive with a central directory entry declaring compressed_size=0xFFFFFFFF (ZIP64 sentinel) but missing the required ZIP64 extra field tag 0x0001 causes z64e() to loop indefinitely due to out-of-bounds reads returning undefined, which coerces to 0, keeping the loop condition permanently true.
Weaknesses CWE-400
CWE-835
References
Metrics cvssV4_0

{'score': 6.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/S:N/AU:Y/R:U/V:D/RE:M/U:Amber'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
seal
Published
Updated
Jul 22, 2026, 12:53 PM
Reserved
May 13, 2026, 12:03 PM
Status
Analyzed
Published
Jul 22, 2026, 8:16 AM
Modified
Oct 24, 2026, 5:10 PM