Critical Out-of-Bounds Write Vulnerability in mpg123: Potential for Heap Corruption

mpg123 Updated 02 Oct 2025

Summary

31/10/2024
N/A
Yes i
Unrated
Not published

CVE-2024-10573: An out-of-bounds write flaw was found in mpg123 when handling crafted streams. Affects mpg123 versions < 1.32.8-r0. Fixed in 1.32.8-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

mpg123 is a widely used audio player for MPEG audio streams, known for its efficiency and support for various audio formats. It is commonly utilized in both desktop and server environments for streaming audio content. However, a critical vulnerability has been identified that affects its ability to handle crafted streams, leading to potential security risks.

Vulnerability Detail

An out-of-bounds write flaw exists in mpg123 when processing specially crafted audio streams. This vulnerability allows the libmpg123 library to write beyond the allocated memory buffer on the heap, which can lead to heap corruption. The exploitation of this vulnerability is complex, requiring the attacker to craft a payload that is validated by the MPEG decoder and the PCM synthesizer before execution. Furthermore, the user must interact with the stream, making exploitation through web live streams, such as web radios, a less likely attack vector. The CVSS score for this vulnerability is 6.7, indicating a moderate level of risk.

How To Fix

Minimum fixed version

1.32.8-r0

This is the first release that contains the fix.

sudo apk add --upgrade mpg123

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid using mpg123 for streaming audio from untrusted sources until the package is updated. Additionally, consider using alternative audio players that do not exhibit this vulnerability.

Conclusion

The out-of-bounds write vulnerability in mpg123 poses significant risks, including heap corruption and potential arbitrary code execution. Users are advised to update to the latest version of mpg123 to mitigate these risks. Until an update can be applied, it is recommended to avoid using the software for untrusted audio streams.

See every vulnerability recorded for mpg123 →

Share this vulnerability

FAQ

The vulnerability is an out-of-bounds write flaw that can lead to heap corruption and potential arbitrary code execution.

If you are using mpg123 version 0 or later on Debian 11, 12, or 13, your version is affected by this vulnerability.

As a workaround, avoid using mpg123 for streaming audio from untrusted sources until you can update to a patched version.

Yes, you can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check your application for this vulnerability using the Vulert playground without any signup.

The CVSS score of this vulnerability is 6.7, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for mpg123.

How To Fix

Minimum fixed version

1.32.8-r0

This is the first release that contains the fix.

sudo apk add --upgrade mpg123

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback