Skip to main content

libmspack CVE-2026-138216

| EUVDEUVD-2026-137733 LOW
Out-of-bounds Read (CWE-125)
2026-11-29 VulDB GHSA-xr6f-45p8-cj4p
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Craft malformed CHM file with unusual structure sizes
  2. Delivery
    Deliver file to victim analyst/developer
  3. Exploit
    Victim runs chminfo test utility on file
  4. Execution
    print_dir reads out of bounds
  5. Impact
    Leak adjacent memory or crash tool

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a victim to run the bundled chminfo CHM inspection/test utility (test/chminfo.c) against an attacker-crafted CHM file whose internal structure sizes are abnormal, triggering the out-of-bounds read in print_dir (and the under-allocation in load_sys_data). Critically, the vulnerable code is the test/debug tool shipped with the source, NOT the libmspack decompression routines that applications such as cabextract call, so the flaw is not reachable through the normal library API. Limiting factors: user interaction is required (someone must invoke the test binary on the malicious file), impact is a read-only memory disclosure plus possible crash, and there is no path to code execution or integrity change evident in the sources.

Impact

This is a genuine but low-priority issue whose raw CVSS 4.0 score of 5.3 (Medium) overstates real-world risk. The supplied vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P with VC:L/VI:L/VA:L describes a remote, low-complexity, unauthenticated condition requiring passive user interaction, and the CWE-125 out-of-bounds read is confirmed by the commit diff. However, the flaw is located in test/chminfo.c - a bundled CHM inspection/test utility (functions print_dir and load_sys_data) - not in the core libmspack decompression library that downstream applications link against, so the AV:N framing is misleading: realistic exploitation requires a victim to manually run the test tool against an attacker-supplied CHM file (effectively local, UI-dependent). Exploitation status is 'no confirmed active exploitation' - the CVE is not in CISA KEV and no EPSS score was provided; a public PoC reference exists (poc.zip) but it is not verified as working exploit code. The VI:L (integrity) impact in the supplied vector is questionable for a read-only out-of-bounds flaw. The vuln.today decision label is 'this_month', not act_now or emergency, consistent with a low-severity, hard-to-reach information-disclosure bug. Net: treat as routine patch hygiene rather than an urgent threat.

Exploit ScenarioDerived

An attacker crafts a malformed CHM file with unusual internal structure sizes and induces a developer or analyst to inspect it with the bundled chminfo test utility. When print_dir parses the directory, it reads past the allocated buffer, leaking adjacent process memory or crashing the tool. A public PoC reference exists but is not verified as working exploit code.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 29, 2026

An out-of-bounds read (CWE-125) in the chminfo test utility shipped with kyz libmspack up to 1.11 causes memory disclosure and possible crashes when the tool parses a crafted CHM file with abnormal internal structure sizes. Exploitation requires a user to build and run the bundled test/chminfo.c inspection binary against the malicious file; the vulnerable code path is not in the library's decompression routines that applications such as cabextract call, so normal library consumers are not exposed through the API. Impact is limited to read-only information disclosure and denial of service with no code execution or integrity change evident in the sources, and a public PoC reference exists but is not verified as working exploit code; there is no CISA KEV listing, and the upstream fix lands in release v0.12alpha.

RemediationAI

Upgrade to libmspack v0.12alpha, which contains the fix, or apply upstream commit fdfe82c6a72420dca7f8e63492a2373399f1b464 (https://github.com/kyz/libmspack/commit/fdfe82c6a72420dca7f8e63492a2373399f1b464), which introduces a minimum 36-byte calloc allocation in load_sys_data and adds chunk_size/quickref_size and directory-cursor bounds checks in print_dir. Because the defect is confined to the shipped chminfo test/debug utility, downstream applications that link libmspack's decompression routines are not affected and do not need emergency action; adopters of the test tool should rebuild from the patched source. Where rebuilding is not immediately possible, the practical interim control is to avoid running the chminfo binary against untrusted or externally sourced CHM files, since the trigger is a malformed file supplied to that specific utility and no library-side configuration toggle exists to constrain the parsing. Remediation references: https://github.com/kyz/libmspack/issues/61 and https://vuldb.com/vuln/445085.

Affected VersionsENISA

libmspack 1.7
libmspack 1.1
libmspack 1.4
libmspack 1.8
libmspack 1.2
libmspack 1.3
libmspack 1.11
libmspack 1.10
libmspack 1.5
libmspack 1.0
libmspack 1.9
libmspack 1.6

Affected Packages

euvd libmspack 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

Microsoft Compiled HTML Help (CHM) files are container archives based on the ITSF/ITSF chunk structures and PMGL directory listings. In libmspack's test/chminfo.c, print_dir() walks directory entries and load_sys_data() allocates a buffer sized from the CHM-declared file->length, which can be smaller than the 36-byte minimum system-data structure the code subsequently reads. The root cause is CWE-125: missing bounds validation on chunk_size versus quickref_size and on directory-cursor arithmetic (pos+4 and pos+8 against the buffer length), so a file with unusual structure sizes causes reads past the end of the heap allocation. The upstream commit fdfe82c6a72420dca7f8e63492a2373399f1b464 addresses this by adding a minimum 36-byte allocation via calloc(), breaking out of the directory loop when k < (chm->chunk_size - quickref_size), and tightening the loop guards to (pos+4) <= len and (pos+8) <= len with corresponding end-of-buffer checks; the ChangeLog entry describes these as guards to stop out-of-bounds reads on CHM files with unusual structure sizes.

Know when Libmspack 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 (VulDB) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 4.4 MEDIUM

Flaw is in a bundled test utility a user must run on a crafted CHM file, so AV:L and UI:R; out-of-bounds read yields info disclosure (C:L) and possible crash (A:L), no integrity impact (I:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

3
Severity Changed
Nov 29, 2026 - 11:22 NVD
MEDIUM LOW
CVSS changed
Nov 29, 2026 - 11:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Nov 29, 2026 - 10:30 cve.org
MEDIUM 5.3

DescriptionCVE.org

A flaw has been found in kyz libmspack up to 1.11. This affects the function print_dir of the file test/chminfo.c of the component CHM File Handler. Executing a manipulation can lead to out-of-bounds read. The attack may be launched remotely. The exploit has been published and may be used. Upgrading to version 0.12alpha is able to mitigate this issue. This patch is called fdfe82c6a72420dca7f8e63492a2373399f1b464. The affected component should be upgraded.

Threat Intelligence Overview

EPSS Score
0.5%
Top 68% exploitable
Prevalence
Medium
widely packaged CAB/CHM library, but flaw is in its bundled test utility
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 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 LOW
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2015-4472 MEDIUM POC
6.8 Jun 11

Off-by-one error in the READ_ENCINT macro in chmd.c in libmspack before 0.5 allows remote attackers to cause a denial of

CVE-2019-1010305 MEDIUM POC
5.5 Jul 15

libmspack 0.9.1alpha is affected by: Buffer Overflow. Rated medium severity (CVSS 5.5), this vulnerability is no authent

CVE-2018-18586 MEDIUM POC
5.3 Oct 23

chmextract.c in the chmextract sample program, as distributed with libmspack before 0.8alpha, does not protect against a

CVE-2014-9556 MEDIUM POC
5.0 Feb 03

Integer overflow in the qtmd_decompress function in libmspack 0.4 allows remote attackers to cause a denial of service (

CVE-2018-14682 HIGH
8.8 Jul 28

An issue was discovered in mspack/chmd.c in libmspack before 0.7alpha. Rated high severity (CVSS 8.8), this vulnerabilit

CVE-2018-14681 HIGH
8.8 Jul 28

An issue was discovered in kwajd_read_headers in mspack/kwajd.c in libmspack before 0.7alpha. Rated high severity (CVSS

CVE-2015-4471 MEDIUM POC
4.3 Jun 11

Off-by-one error in the lzxd_decompress function in lzxd.c in libmspack before 0.5 allows remote attackers to cause a de

CVE-2015-4470 MEDIUM POC
4.3 Jun 11

Off-by-one error in the inflate function in mszipd.c in libmspack before 0.5 allows remote attackers to cause a denial o

CVE-2014-9732 MEDIUM POC
4.3 Jun 11

The cabd_extract function in cabd.c in libmspack before 0.5 does not properly maintain decompression callbacks in certai

CVE-2015-4469 MEDIUM POC
4.3 Jun 11

The chmd_read_headers function in chmd.c in libmspack before 0.5 does not validate name lengths, which allows remote att

CVE-2015-4468 MEDIUM POC
4.3 Jun 11

Multiple integer overflows in the search_chunk function in chmd.c in libmspack before 0.5 allow remote attackers to caus

CVE-2015-4467 MEDIUM POC
4.3 Jun 11

The chmd_init_decomp function in chmd.c in libmspack before 0.5 does not properly validate the reset interval, which all

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