# CVE-2026-111270: libmodplug through 0.8.9.1 Heap Out-of-Bounds Write via CSoundFile::ReadDSM

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/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:17.665Z
- Modified: 2026-10-21T02:17:05.163Z
- Weaknesses: CWE-787
- 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 write in CSoundFile::ReadDSM() in src/load_dsm.cpp because nPat is never checked against MAX_PATTERNS. Attackers can supply a crafted DSM file with over 240 PATT chunks or a wrapping patt_len value to corrupt heap memory and crash the consuming process.

(As written by CVE List.)

## Affected

- Konstanty Bialkowski libmodplug: up to 0.8.9.1

## Every score

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

## References

- <https://hackmd.io/@haind-pwn/cve-2026-111270-111271-libmodplug-dsm-pattern-oob-write> (exploit)
- <https://hackmd.io/@haind-pwn/libmodplug-dsm-pattern-oob-write> (technical-description)
- <https://github.com/Konstanty/libmodplug/blob/d1b97ed0020bc620a059d3675d1854b40bd2608d/src/load_dsm.cpp#L130-L139> (technical-description)
- <https://github.com/Konstanty/libmodplug> (product)
- <https://www.vulncheck.com/advisories/libmodplug-through-0.8.9.1-heap-out-of-bounds-write-via-csoundfile-readdsm> (third-party-advisory)

## Sources

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

---

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