CVE-2019-5059 Integer overflow in SDL

High 8.8 Published Updated

A specially crafted XPM image triggers an integer overflow leading to a heap buffer overflow and arbitrary code execution in SDL2_image.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-5059?

CVE-2019-5059 is a high-severity vulnerability in Opensuse Backports Sle, published on 31 Jul 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An exploitable code execution vulnerability exists in the XPM image rendering functionality of SDL2_image 2.0.4. A specially crafted XPM image can cause an integer overflow, 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.

Weakness: CWE-787, CWE-190

Which versions are affected by CVE-2019-5059?

It affects 3 products.

Products include Libsdl Sdl2 Image, Opensuse Backports Sle, Opensuse Leap.

How do I fix CVE-2019-5059?

Upgrade to a fixed version.

Is CVE-2019-5059 being exploited?

There is no known exploitation of CVE-2019-5059 in the wild and no public exploit code.

All Opensuse Backports Sle vulnerabilities

Sources

Also known as ALPINE-CVE-2019-5059, DEBIAN-CVE-2019-5059, GHSA-g82w-w3fp-3m77, UBUNTU-CVE-2019-5059.

Is CVE-2019-5059 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free