# CVE-2026-111271: libmodplug through 0.8.9.1 Heap Out-of-Bounds Read via CSoundFile::ReadAMS2

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T21:43:18.348Z
- Modified: 2026-10-16T18:25:45.343Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- Konstanty Bialkowski libmodplug: up to 0.8.9.1

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://hackmd.io/@haind-pwn/libmodplug-dsm-pattern-oob-write> (exploit, technical-description)
- <https://github.com/Konstanty/libmodplug/blob/d1b97ed0020bc620a059d3675d1854b40bd2608d/src/load_ams.cpp#L509-L537> (technical-description)
- <https://github.com/Konstanty/libmodplug> (product)
- <https://www.vulncheck.com/advisories/libmodplug-through-0.8.9.1-heap-out-of-bounds-read-via-csoundfile-readams2> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-111271](https://www.cve.org/CVERecord?id=CVE-2026-111271), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-111271](https://nvd.nist.gov/vuln/detail/CVE-2026-111271), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-111271 · Whole record: https://cve.day/CVE-2026-111271.json · Rebuilt by cve.day 2026-11-25T22:59:44.975Z
