Zero-day vulnerability in libmodplug

Heap-based buffer overflow

Exploited in the wild in August 2008.

Vulnerability details

Advisory: SB2009042001 - Remote code execution in ModPlug libmodplug

Vulnerable component: libmodplug

CVE-ID: CVE-2009-1438

CVSSv3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H/E:F/RL:O/RC:C

CWE-ID: CWE-190 - Integer Overflow or Wraparound


The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to heap-based buffer overflow, caused by an integer overflow in the CSoundFile::ReadMed() function. A remote attacker can create MED file containing a specially crafted song comment or name, trick the victim into opening it, trigger memory corruption and execute arbitrary code with privileges of the current user.

Successful exploitation of the vulnerability results in arbitrary code execution on the vulnerable system.

Note: the vulnerability was being actively exploited.