CVE-2019-13616
SDL: heap-based buffer overflow in SDL blit functions in video/SDL_blit*.c
Severity
ImportantRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · July 30, 2019
Updated · June 27, 2026
Description
A heap-based buffer overflow was discovered in SDL in the SDL_BlitCopy() function, that was called while copying an existing surface into a new optimized one, due to lack of validation while loading a BMP image in the SDL_LoadBMP_RW() function. An application that uses SDL to parse untrusted input files may be vulnerable to this flaw, which could allow an attacker to make the application crash or possibly execute code.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
If the application accepts untrusted BMP files there is no known mitigation apart from applying the patch.
CVSS / CWE
CVSS 3.0 · 8.1CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE-787 · Out-of-bounds Write