Integer overflow in sdl2_image - CVE-2019-5052

 

Integer overflow in sdl2_image - CVE-2019-5052

Published: July 3, 2019 / Updated: August 4, 2020


Vulnerability identifier: #VU33390
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2019-5052
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: zlib license
Affected software:
sdl2_image

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

An exploitable integer overflow vulnerability exists when loading a PCX file in SDL2_image 2.0.4. A specially crafted file can cause an integer overflow, resulting in too little memory being allocated, which can lead to a buffer overflow and potential code execution. An attacker can provide a specially crafted image file to trigger this vulnerability.


How to mitigate CVE-2019-5052

Install update from vendor's website.

Sources