---
id: CVE-2024-10573
title: 'Mpg123: buffer overflow when writing decoded pcm samples'
summary: >-
  An out-of-bounds write flaw was found in mpg123 when handling crafted streams.
  When decoding PCM, the libmpg123 may write past the end of a heap-located
  buffer. Consequently, heap corruption may happen, and arbitrary code execution
  is no…
severity: medium
cvss: 6.7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-787
vendor: Red Hat
product: mpg123
affected:
  - mpg123 < 1.32.8
  - mpg123 (all versions)
  - mpg123 (all versions)
  - mpg123
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2024-10-31T19:37:55.533250Z'
published: '2024-10-31'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T11:40:40.236Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-10573'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:11193'
    label: 'RHSA-2024:11193'
  - url: 'https://access.redhat.com/errata/RHSA-2024:11242'
    label: 'RHSA-2024:11242'
  - url: 'https://access.redhat.com/security/cve/CVE-2024-10573'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2322980'
    label: RHBZ#2322980
  - url: 'https://mpg123.org/cgi-bin/news.cgi#2024-10-26'
tags:
  - cve.org
epss: 0.00346
epssPercentile: 0.28359
ingestedAt: '2026-11-05T21:36:00.824Z'
---

## Overview

An out-of-bounds write flaw was found in mpg123 when handling crafted streams. When decoding PCM, the libmpg123 may write past the end of a heap-located buffer. Consequently, heap corruption may happen, and arbitrary code execution is not discarded. The complexity required to exploit this flaw is considered high as the payload must be validated by the MPEG decoder and the PCM synth before execution. Additionally, to successfully execute the attack, the user must scan through the stream, making web live stream content (such as web radios) a very unlikely attack vector.

## Affected

- `mpg123 < 1.32.8`
- `mpg123 (all versions)`
- `mpg123 (all versions)`
- `mpg123`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

This vulnerability can be mitigated by using the --no-frankenstein option to the mpg123 application.
