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: 8.6 [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]
CVE-ID: CVE-2017-16352
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vulnerability details
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.
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.
Affected software
GraphicsMagick
graphicsmagick (Alpine package)
GraphicsMagick
Fedora
graphicsmagick (Alpine package)
GraphicsMagick
Fedora
How to mitigate CVE-2017-16352
Install update from vendor's website.
GraphicsMagick - addressed in versions 1.3.34-1.el7, 1.3.34-1.el8