Critical Buffer Over-read Vulnerability in SDL and SDL2 Packages

sdl Updated 02 Oct 2025

Summary

07/02/2019
N/A
Yes i
High
8.8

ALPINE-CVE-2019-7572: SDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has a buffer over-read in IMA_ADPCM_nibble in audio/SDL_wave.c. Affects sdl versions < 1.2.15-r11. Fixed in 1.2.15-r11. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

SDL (Simple DirectMedia Layer) is a cross-platform development library designed to provide low-level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is widely used in game development and multimedia applications. The vulnerability affects versions of SDL up to 1.2.15 and SDL2 up to 2.0.9, making it crucial for developers to address this issue to maintain the integrity and security of their applications.

Vulnerability Detail

The vulnerability identified as CVE-2019-7572 is a buffer over-read in the IMA_ADPCM_nibble function located in audio/SDL_wave.c. This flaw can lead to potential information leakage and may allow an attacker to exploit the application, resulting in unauthorized access to sensitive data. The vulnerability has a CVSS score of 8.8, indicating a high severity level that necessitates immediate attention from developers and system administrators.

How To Fix

Minimum fixed version

1.2.15-r11

This is the first release that contains the fix.

sudo apk add --upgrade sdl

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

Workaround

If immediate patching is not feasible, consider implementing input validation to ensure that data processed by the SDL functions is sanitized and does not lead to buffer over-reads. Additionally, review the application code to identify and mitigate any potential exploitation paths.

Conclusion

The buffer over-read vulnerability in SDL and SDL2 packages poses a significant risk to applications utilizing these libraries. It is essential for developers to update to the patched versions to mitigate potential security threats. Regular monitoring and vulnerability assessments using tools like Vulert can further enhance application security.

See every vulnerability recorded for sdl →

Share this vulnerability

FAQ

CVE-2019-7572 is a buffer over-read vulnerability found in SDL and SDL2 libraries, which can lead to information leakage.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized access to sensitive data, potentially compromising the security of the application.

Use the command apk add --update sdl=1.2.15-r11 for SDL and apk add --update sdl2=2.0.10-r0 for SDL2 to update to the patched versions.

Vulert monitors and alerts for open-source vulnerabilities in software using a manifest file like package-lock.json, helping developers maintain secure applications.

Related vulnerabilities

Recent vulnerabilities recorded for sdl.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.2.15-r11

This is the first release that contains the fix.

sudo apk add --upgrade sdl

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