---
id: CVE-2026-111155
title: >-
  libTiMidity through 0.2.8 contains a heap out-of-bounds read vulnerability in
  the SoundFont loader in src/sndfont.c that uses unvalidated sampleId and
  instrument generator values as table indices
summary: >-
  libTiMidity through 0.2.8 contains a heap out-of-bounds read vulnerability in
  the SoundFont loader in src/sndfont.c that uses unvalidated sampleId and
  instrument generator values as table indices. Attackers can supply a crafted
  .sf2 file…
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: sezero
product: libtimidity
affected:
  - libtimidity >= 0.2.8 <= 0.2.8
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:17:30.387'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-111155'
references:
  - url: 'https://github.com/sezero/libtimidity'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/sezero/libtimidity/blob/a52adf6aee2635e2a16797213a089c2180e67757/src/sndfont.c#L578-L590
    label: disclosure@vulncheck.com
  - url: >-
      https://hackmd.io/@haind-pwn/libtimidity-soundfont-generator-oper-oob-write
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/libtimidity-through-0.2.8-out-of-bounds-read-via-soundfont-loader-sndfont-c
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-15T19:25:46.416Z'
---

## Overview

libTiMidity through 0.2.8 contains a heap out-of-bounds read vulnerability in the SoundFont loader in src/sndfont.c that uses unvalidated sampleId and instrument generator values as table indices. Attackers can supply a crafted .sf2 file loaded through mid_set_soundfont() to read heap memory out of bounds and crash the application.

## Remediation

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