Heap-based buffer overflow in GraphicsMagick - CVE-2017-16352

 

Heap-based buffer overflow in GraphicsMagick - CVE-2017-16352

Published: April 13, 2018 / Updated: September 14, 2018


Vulnerability identifier: #VU11814
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-2017-16352
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: GraphicsMagick Group
Affected software:
GraphicsMagick

Detailed vulnerability description

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

The weakness exists in the "Display visual image directory" feature of the DescribeImage() function of the magick/describe.c file due to heap-based buffer overflow. A remote attacker can trick the victim into opening a specially crafted MIFF format file with the verbose flag, trigger memory corruption and execute arbitrary code.

Successful exploitation of the vulnerability may result in system compromise.

How to mitigate CVE-2017-16352

Install update from vendor's website.

Sources