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.
Published: 2026-10-15
Score: 6.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Memory disclosure or crash
Action: Apply patch
AI Analysis

Impact

libmodplug up to version 0.8.9.1 contains a heap‑based out‑of‑bounds read in the CSoundFile::ReadAMS2() routine. Crafting an AMS module with pattern effect bytes that keep the most significant bit set forces the decoder to read past the input buffer, exposing adjacent heap memory. This flaw falls under CWE‑125 and could lead to memory disclosure or a denial‑of‑service crash for any application that processes such a module.

Affected Systems

The vulnerability affects Konstanty Bialkowski’s libmodplug version 0.8.9.1 or earlier. Any application that loads AMS modules—such as media players, game engines, or other multimedia tools—may be compromised if the library is not updated.

Risk and Exploitability

The CVSS base score of 6.8 indicates moderate severity. The EPSS score is less than 1 %, implying a very low exploitation probability, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an attacker to supply a crafted AMS file to a consumer of libmodplug; based on the description, the likely vectors include local or remote file upload or ingestion of AMS modules from external sources.

Generated by OpenCVE AI on October 16, 2026 at 16:41 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libmodplug to the latest release from the official repository, which removes the out‑of‑bounds read in CSoundFile::ReadAMS2()
  • Validate AMS file input by rejecting any pattern effect byte that has bit 7 set during parsing to mitigate the out‑of‑bounds read
  • Deploy applications that use libmodplug in a sandboxed or restricted environment to contain potential crashes or memory disclosures

Generated by OpenCVE AI on October 16, 2026 at 16:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 16 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 15 Oct 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title libmodplug through 0.8.9.1 Heap Out-of-Bounds Read via CSoundFile::ReadAMS2
First Time appeared Konstanty Bialkowski
Konstanty Bialkowski libmodplug
Weaknesses CWE-125
CPEs cpe:2.3:a:konstanty_bialkowski:libmodplug:*:*:*:*:*:*:*:*
Vendors & Products Konstanty Bialkowski
Konstanty Bialkowski libmodplug
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 6.8, 'vector': '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'}


Subscriptions

Konstanty Bialkowski Libmodplug
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-16T14:39:25.166Z

Reserved: 2026-10-15T19:33:19.766Z

Link: CVE-2026-111271

cve-icon Vulnrichment

Updated: 2026-10-16T14:38:45.771Z

cve-icon NVD

Status : Deferred

Published: 2026-10-15T22:19:27.957

Modified: 2026-10-16T18:25:45.343

Link: CVE-2026-111271

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-16T16:45:14Z

Weaknesses