8.8
CWE
190 787
Advisory Published
Updated

CVE-2019-5060: Integer Overflow

First published: Wed Jul 31 2019(Updated: )

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.

Credit: talos-cna@cisco.com

Affected SoftwareAffected VersionHow to fix
Libsdl Sdl2 Image=2.0.4
openSUSE Backports SLE=15.0
openSUSE Backports SLE=15.0-sp1
openSUSE Leap=15.0
openSUSE Leap=15.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID of this exploit?

    The vulnerability ID is CVE-2019-5060.

  • What is the severity level of CVE-2019-5060?

    The severity level of CVE-2019-5060 is high (8.8).

  • Which software is affected by CVE-2019-5060?

    Libsdl Sdl2 Image version 2.0.4 and openSUSE Backports SLE versions 15.0 and 15.0-sp1 are affected.

  • How can the vulnerability CVE-2019-5060 be exploited?

    By using a specially crafted XPM image, an attacker can trigger an integer overflow in the colorhash function, leading to a heap overflow.

  • Are there any references available for CVE-2019-5060?

    Yes, you can find references for CVE-2019-5060 at http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00012.html, http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00014.html, and http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00029.html.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203