Buffer overflow in Libsdl Sdl2 Image

CVE-2019-5060

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.

Vulnerability class: Integer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.040 (90.1th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 90th percentile — 90.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2019-5060: held from 0.039 to 0.040.

EPSS over last 30 days · oldest: 0.039 · newest: 0.040 · change: +0.000

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2019-5060?
CVE-2019-5060 is a high-severity vulnerability in Libsdl Sdl2 Image, classified under Integer Overflow or Wraparound. CVSS score: 8.8/10. Published 2019-07-31.
How severe is CVE-2019-5060?
High severity. CVSS v3 base score is 8.8 out of 10.