Double Free in libgd2 - CVE-2019-6978

 

Double Free in libgd2 - CVE-2019-6978

Published: February 6, 2019


Vulnerability identifier: #VU17380
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:P/U:Amber
CVE-ID: CVE-2019-6978
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: GD Software
Affected software:
libgd2

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to double free in the gdImage*Ptr() functions in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c. A remote attacker can trick the victim into opening a specially crafted input, trigger double free error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


How to mitigate CVE-2019-6978

Install updates from vendor's website.

Sources