---
id: CVE-2026-111162
title: >-
  WildMIDI through 0.5.0 contains a heap out-of-bounds read vulnerability in the
  HMP parser _WM_ParseNewHmp() that allows attackers to read beyond buffers via
  underflowed chunk lengths
summary: >-
  WildMIDI through 0.5.0 contains a heap out-of-bounds read vulnerability in the
  HMP parser _WM_ParseNewHmp() that allows attackers to read beyond buffers via
  underflowed chunk lengths. Attackers can supply a crafted .hmp file with a
  chunk…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'
cwe:
  - CWE-125
vendor: Mindwerks
product: WildMIDI
affected:
  - WildMIDI <= 0.5.0
published: '2026-10-15'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T18:25:45.343'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-111162'
references:
  - url: 'https://github.com/Mindwerks/wildmidi'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Mindwerks/wildmidi/blob/340472ed4633d139d30c660b90eca03c1320e593/src/f_hmp.c#L258-L261
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Mindwerks/wildmidi/blob/340472ed4633d139d30c660b90eca03c1320e593/src/internal_midi.c#L2166-L2172
    label: disclosure@vulncheck.com
  - url: 'https://hackmd.io/@haind-pwn/wildmidi-hmp-chunk-length-underflow-oob-read'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/wildmidi-through-0.5.0-heap-out-of-bounds-read-via-wm-parsenewhmp
    label: disclosure@vulncheck.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-111162.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-111162'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-111162'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00127
epssPercentile: 0.02345
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-16T16:31:28.162084Z'
ingestedAt: '2026-10-15T19:25:46.419Z'
---

## Overview

WildMIDI through 0.5.0 contains a heap out-of-bounds read vulnerability in the HMP parser _WM_ParseNewHmp() that allows attackers to read beyond buffers via underflowed chunk lengths. Attackers can supply a crafted .hmp file with a chunk length of 0-12 that wraps to roughly 4 GB, crashing applications or exposing heap bytes through WildMidi_GetInfo().

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-111162.json)
