---
id: CVE-2026-111271
title: >-
  libmodplug through 0.8.9.1 contains a heap-based out-of-bounds read
  vulnerability in CSoundFile::ReadAMS2() in src/load_ams.cpp that allows
  attackers to read adjacent heap memory via crafted AMS files
summary: >-
  libmodplug through 0.8.9.1 contains a heap-based out-of-bounds read
  vulnerability in CSoundFile::ReadAMS2() in src/load_ams.cpp that allows
  attackers to read adjacent heap memory via crafted AMS files. Attackers can
  supply an AMS module …
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-125
vendor: Red Hat
product: libmodplug
affected:
  - libmodplug <= 0.8.9.1
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-111271'
references:
  - url: 'https://github.com/Konstanty/libmodplug'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Konstanty/libmodplug/blob/d1b97ed0020bc620a059d3675d1854b40bd2608d/src/load_ams.cpp#L509-L537
    label: disclosure@vulncheck.com
  - url: 'https://hackmd.io/@haind-pwn/libmodplug-dsm-pattern-oob-write'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/libmodplug-through-0.8.9.1-heap-out-of-bounds-read-via-csoundfile-readams2
    label: disclosure@vulncheck.com
  - url: 'https://hackmd.io/@haind-pwn/libmodplug-dsm-pattern-oob-write'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-111271.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-111271'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-111271'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
  - exploit-available
epss: 0.00195
epssPercentile: 0.0912
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-16T14:37:44.364806Z'
ingestedAt: '2026-10-15T22:48:25.446Z'
---

## Overview

libmodplug through 0.8.9.1 contains a heap-based out-of-bounds read vulnerability in CSoundFile::ReadAMS2() in src/load_ams.cpp that allows attackers to read adjacent heap memory via crafted AMS files. Attackers can supply an AMS module whose pattern effect bytes keep bit 7 set, driving the decoder past the input buffer and crashing any libmodplug consumer.

## 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-111271.json)
