---
id: "CVE-2026-122328"
kind: "vulnerability"
aliases: ["CVE-2026-122328"]
title: "SDL_mixer: crafted WAV file overflows stack when decoding audio"
severity: "high"
cvss: 8.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["c", "c++", "games", "package", "sdl_mixer"]
not_affected_if: ["only-trusted-audio-files", "sdl-mixer-outside-3.1.2-3.2.4"]
published_at: "2026-11-05T16:17:45+00:00"
first_seen_at: "2026-11-05T16:40:02+00:00"
updated_at: "2026-11-05T16:41:23+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-122328", "first_seen_at": "2026-11-05T16:40:02+00:00"}]
exploit_sources: []
---

# SDL_mixer: crafted WAV file overflows stack when decoding audio

SDL_mixer's WAV decoder, in FetchXLaw() for A-law and mu-law files, writes about 1 KB past a stack buffer when given a crafted file. An attacker who gets an application to play such a WAV can crash it or possibly run code.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Find the SDL_mixer version in use, for example with `pkg-config --modversion SDL3_mixer` or in the project's lockfile or vendored sources.
- Check whether the application decodes WAV files from untrusted sources.

## Fix

- SDL_mixer versions after `3.2.4` (the fixed release is named in the patch linked from the NVD entry; the exact version is unknown from the sources).

## Timeline

- 2026-11-05T16:40:02+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-122328

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/sdl-mixer-3.1.2-through-3.2.4-stack-based-buffer-overflow-via-fetchxlaw-in-wav-decoder
- [fix] Patch: github.com https://github.com/libsdl-org/SDL_mixer/commit/df966f698e18ae849bd92796a26311e79c555718

## From the sources

SDL_mixer 3.1.2 through 3.2.4 contains a stack-based buffer overflow vulnerability in FetchXLaw() of src/decoder_wav.c when decoding A-law or mu-law WAV files. Attackers can supply a crafted WAV file whose doubly-offset float expansion overwrites about 1 KB of adjacent stack memory, causing crashes or potentially code execution.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
