Description
Heap-based buffer overflow in httpdget.c in mpg123 before 0.59s-rll allows remote attackers to execute arbitrary code via a long URL, which is not properly terminated before being used with the strncpy function. NOTE: This appears to be the result of an incomplete patch for CVE-2004-0982.
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 | mpg123 | 0.60-1 | — |
| Debian 13 | mpg123 | 0.60-1 | — |
| Debian 12 | mpg123 | 0.60-1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Gentoo-Specific MPG123 - URI Remote Buffer Overflow EDB-28160 · dos · Jul 3, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 18794 vdb-entry
- GLSA-200607-01 vendor-advisory
- http://bugs.gentoo.org/show_bug.cgi?id=133988
- 20937 third-party-advisory