Skip to main content
Menu
CVEs

libmspack out-of-bounds read in CHM file handler

Only affects libmspack master at commit 55d501976171397ccd5d5a7a1ca7da065b1d9a06, in the chminfo test tool only. CVSS scores it 5.3 (medium). No fixed version is listed.

CVE-2026-138216Published November 29, 2026, updated

5.3MediumCNA
Exploited
No known exploitation
Fix
Fix or patch referenced
Who is exposed
Specific setups only

Summary

A flaw in the CHM File Handler component of kyz libmspack can lead to an out-of-bounds read. An attacker can reach it remotely without logging in, but it requires a user to take an action.

Written by a model

Original description

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.

Who should check

Teams running libmspack's chminfo test tool on untrusted or attacker-supplied CHM files, such as analysts or automated pipelines.

“Component: test/chminfo.c only (main() and print_dir())”

github.com

What to do

  1. Check whether your setup matches what the bug needs.

    Affects libmspack master at commit 55d501976171397ccd5d5a7a1ca7da065b1d9a06 (chminfo test tool only). The chminfo test tool is run on a crafted CHM file.
  2. Apply the patch listed under Evidence.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-138216 (kyz libmspack CHM File chminfo.c print_dir out-of-bounds), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-138216 (entry last updated 2026-11-29):
Affected:
- kyz libmspack: versions 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Affects libmspack master at commit 55d501976171397ccd5d5a7a1ca7da065b1d9a06 (chminfo test tool only). (source: https://github.com/kyz/libmspack/issues/61)
- The chminfo test tool is run on a crafted CHM file. (source: https://github.com/kyz/libmspack/issues/61)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, a user action.
CISA KEV: CVE-2026-138216 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138216 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/kyz/libmspack/commit/fdfe82c6a72420dca7f8e63492a2373399f1b464
- https://github.com/kyz/libmspack/releases/tag/v0.12alpha
- https://github.com/kyz/libmspack/issues/61
- https://vuldb.com/vuln/445085
- https://vuldb.com/vuln/445085/cti
- https://vuldb.com/cve/CVE-2026-138216
- https://vuldb.com/submit/1071169
- https://github.com/kyz/libmspack/
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-138216
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138216"}.

Affected versions

cve.now Index

17Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure12/25Specific setups only, reachable over the network without a login
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity5.3/10CVSS 5.3
  • No patch0/5No signal

What would change the score

  • Would score about 67 if added to CISA KEV
  • Would score about 62 if CISA's SSVC rates exploitation active

Timeline

  1. CVE published
  2. First seen by cve.now

Evidence 11

KindSource
CVE record 2Establishes: The identifier and description.
RecordCVE List · CVE-2026-138216
RecordNVD · CVE-2026-138216
Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub).
ExploitGitHub · user-attachments/files · 34297048/poc.zip
Other links 8
AdvisoryVulDB · Advisory #445085
AdvisoryVulDB · Threat intelligence #445085
AdvisoryVulDB · CVE-2026-138216 record
AdvisoryVulDB · Submission #1071169
PatchGitHub · kyz/libmspack · Commit fdfe82c6
PatchGitHub · kyz/libmspack · Release v0.12alpha
ReportGitHub · kyz/libmspack · Issue #61
RepositoryGitHub · kyz/libmspack · Repository

Questions about CVE-2026-138216

Is CVE-2026-138216 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

Running the chminfo tool on a crafted CHM file crashes the tool, a denial of service. It can also print adjacent heap bytes as ControlData/ResetTable fields, a limited information disclosure.

Source: github.com

Which versions are affected by CVE-2026-138216?

libmspack: versions 1.0, 1.1, 1.2, 1.3, 1.4 and 7 more.

Source: cve.now feed data

Am I affected, and how do I check?

The advisory covers libmspack master at commit 55d501976171397ccd5d5a7a1ca7da065b1d9a06 and only the chminfo test tool. To check a copy, compare its source against that commit and see whether it builds the chminfo tool.

Source: github.com

How do I fix CVE-2026-138216?

The facts do not name a fixed version or vendor patch for this issue. Check the libmspack project for a later commit that changes print_dir in chminfo.c.

Source: github.com

No corrections so far. Something wrong on this page? Report an error.