Description
SumatraPDF is a multi-format reader for Windows. In 3.6.1 and earlier, a crafted CHM file can supply malformed LZX Huffman code lengths to make_decode_table in ext/CHMLib/lzx.c. In the long-code branch, the function writes new internal nodes through next_symbol before validating that the canonical Huffman table has overflowed. The PRETREE case can write beyond the 104-entry PRETREE_table into adjacent heap state in struct LZXstate when reached through chm_open, chm_retrieve_object, LZXdecompress, and BUILD_TABLE. This produces heap memory corruption in the parser process, while arbitrary code execution has not been demonstrated. No fixed version is available as of this review.
Published: 2026-08-20
Score: 6.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability originates when SumatraPDF processes a CHM file that supplies malformed LZX Huffman code lengths. During the long‑code branch of LZXdecompress, the function writes new internal nodes through next_symbol before validating that the canonical Huffman table has overflowed, allowing a write past the end of the 104‑entry PRETREE table into adjacent heap state within the LZXstate structure. This results in heap memory corruption in the parser process; arbitrary code execution has not been demonstrated but the corruption could be leveraged to subvert program control flow.

Affected Systems

SumatraPDF reader for Windows, versions 3.6.1 and earlier. The flaw is triggered by loading a crafted .chm document using the chm_open, chm_retrieve_object, LZXdecompress, and BUILD_TABLE workflow. Users who open such files with the vulnerable reader are affected.

Risk and Exploitability

The CVSS score of 6.6 indicates moderate severity. The EPSS score is not available and the issue is not listed in CISA's KEV catalog. Exploitation requires a malicious CHM file and local execution of SumatraPDF; no public exploit has been reported. The risk is noteworthy for environments that allow untrusted CHM content, as heap corruption could lead to unpredictable behavior or potential compromise if an exploit is crafted.

Generated by OpenCVE AI on August 20, 2026 at 20:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install the latest SumatraPDF release and verify whether the flaw has been fixed; if not, remove or disable support for CHM files or restrict them to trusted sources.
  • Avoid opening unknown or unverified CHM documents with SumatraPDF; instead use an alternative viewer or extract the content with a trusted tool before opening.
  • If opening CHM files is unavoidable, perform the operation in a sandboxed or monitored environment to contain potential impact.

Generated by OpenCVE AI on August 20, 2026 at 20:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 20 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
First Time appeared Sumatrapdfreader
Sumatrapdfreader sumatrapdf
Vendors & Products Sumatrapdfreader
Sumatrapdfreader sumatrapdf

Thu, 20 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Description SumatraPDF is a multi-format reader for Windows. In 3.6.1 and earlier, a crafted CHM file can supply malformed LZX Huffman code lengths to make_decode_table in ext/CHMLib/lzx.c. In the long-code branch, the function writes new internal nodes through next_symbol before validating that the canonical Huffman table has overflowed. The PRETREE case can write beyond the 104-entry PRETREE_table into adjacent heap state in struct LZXstate when reached through chm_open, chm_retrieve_object, LZXdecompress, and BUILD_TABLE. This produces heap memory corruption in the parser process, while arbitrary code execution has not been demonstrated. No fixed version is available as of this review.
Title SumatraPDF: Heap out-of-bounds write in vendored CHMLib LZX Huffman table construction reachable from crafted CHM files
Weaknesses CWE-119
CWE-787
References
Metrics cvssV3_1

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


Subscriptions

Sumatrapdfreader Sumatrapdf
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-21T21:47:17.240Z

Reserved: 2026-06-16T23:18:03.169Z

Link: CVE-2026-55586

cve-icon Vulnrichment

Updated: 2026-08-21T20:58:53.784Z

cve-icon NVD

Status : Received

Published: 2026-08-20T17:18:27.723

Modified: 2026-08-21T22:16:41.210

Link: CVE-2026-55586

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T20:15:04Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-787

    Out-of-bounds Write