Live threats

All CVEs / Libsdl

CVE-2019-5060Libsdl Sdl2 Image

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
4.0%
probability of exploitation in 30 days · percentile 91
Auth required
No
Published
Jul 31, 2019
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-190, CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

An exploitable code execution vulnerability exists in the XPM image rendering function of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow in the colorhash function, allocating too small of a buffer. This buffer can then be written out of bounds, resulting in a heap overflow, ultimately ending in code execution. An attacker can display a specially crafted image to trigger this vulnerability.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sdl2 Image.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
libsdlsdl2_image2.0.4
opensusebackports_sle15.0
opensusebackports_sle15.0
opensuseleap15.0
opensuseleap15.1

Official sources

References

Links published by the sources. Open them with care.