Heap-Based Buffer Over-Read in SDL Package - CVE-2019-7578

sdl Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2019-7578: SDL (Simple DirectMedia Layer) through 1.2.15 and 2.x through 2.0.9 has a heap-based buffer over-read in InitIMA_ADPCM 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 library facilitates the creation of games and other interactive applications by providing a simple interface for handling multimedia content. However, vulnerabilities in SDL can lead to severe security risks, making it crucial for developers to maintain updated versions.

Vulnerability Detail

The vulnerability identified as CVE-2019-7578 is a heap-based buffer over-read that affects SDL versions up to 1.2.15 and 2.x up to 2.0.9. This flaw originates from the InitIMA_ADPCM function in the SDL_wave.c file, which can lead to unauthorized access to sensitive data or application crashes. The severity of this vulnerability is rated at CVSS 8.1, indicating a high risk to systems utilizing affected versions of SDL. Attackers could exploit this vulnerability to read beyond the allocated memory, potentially leading to information disclosure or other malicious activities.

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 updating is not feasible, consider implementing input validation and sanitization to minimize the risk of exploitation. Additionally, avoid using the affected functions until the package is updated.

Conclusion

CVE-2019-7578 represents a significant security risk for applications utilizing the SDL library. It is crucial for developers to update to the patched versions to protect their applications from potential exploitation. Regular monitoring for vulnerabilities using tools like Vulert can help maintain security in open-source software.

See every vulnerability recorded for sdl →

Share this vulnerability

FAQ

CVE-2019-7578 is a vulnerability in the SDL library that allows for a heap-based buffer over-read, which can lead to unauthorized data access.

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

The vulnerability affects SDL versions up to 1.2.15 and 2.x up to 2.0.9.

The CVSS score for CVE-2019-7578 is 8.1, indicating a high severity level.

If you cannot update immediately, implement input validation and avoid using the affected functions until an update can be performed.

Related vulnerabilities

Recent vulnerabilities recorded for sdl.

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