Description
Integer overflow in the CSoundFile::ReadMed function (src/load_med.cpp) in libmodplug before 0.8.6, as used in gstreamer-plugins, TTPlayer, and other products, allows context-dependent attackers to execute arbitrary code via a MED file with a crafted (1) song comment or (2) song name, which triggers a heap-based buffer overflow, as exploited in the wild in August 2008.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libmodplug | 1:0.8.7-1 | — |
| Debian 13 | libmodplug | 1:0.8.7-1 | — |
| Debian 12 | libmodplug | 1:0.8.7-1 | — |
| Debian 5.0 | gst-plugins-bad0.10 | 0.10.7-2+lenny2 | DSA-1851-1 |
| Debian 5.0 | libmodplug | 1:0.8.4-1+lenny1 | DSA-1850-1 |
| Debian 4.0 | gst-plugins-bad0.10 | 0.10.3-3.1+etch3 | DSA-1851-1 |
| Debian 4.0 | libmodplug | 1:0.7-5.2+etch1 | DSA-1850-1 |
Advisories 2
- DSA-1851-1 gst-plugins-bad0.10 - arbitrary code execution Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1850-1 libmodplug - arbitrary code execution Debian Security (DSA / DLA) · Mar 9, 2026
References
- 53801 vdb-entry
- USN-771-1 vendor-advisory
- http://modplug-xmms.cvs.sourceforge.net/viewvc/modplug-xmms/libmodplug/src/load_med.cpp?r1=1.1&%3Br2=1.2
- 34797 third-party-advisory
- 35736 third-party-advisory
- 36183 third-party-advisory
- DSA-1850 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=496834
- DSA-1851 vendor-advisory
- 36158 third-party-advisory
- http://bugs.gentoo.org/show_bug.cgi?id=266913
- 30801 vdb-entry
- MDVSA-2009:128 vendor-advisory
- libmodplug-csoundfilereadmed-bo(50388) vdb-entry
- 35026 third-party-advisory
- http://sourceforge.net/project/shownotes.php?release_id=677065&group_id=1275
- GLSA-200907-07 vendor-advisory
- 35685 third-party-advisory
- FEDORA-2009-4068 vendor-advisory
- FEDORA-2009-4064 vendor-advisory
- ADV-2009-1104 vdb-entry
- 34930 third-party-advisory
- SUSE-SR:2009:012 vendor-advisory
- [oss-security] 20090421 CVE Request -- libmodplug mailing-list