Heap-based buffer overflow in ImageMagick - CVE-2018-16642

 

Heap-based buffer overflow in ImageMagick - CVE-2018-16642

Published: October 14, 2018


Vulnerability identifier: #VU15351
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-16642
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to a boundary error within InsertRow in coders/cut.c when processing images. A remote attacker can create a specially crafted image, trigger heap-based buffer overflow and execute arbitrary code on the target system.

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


Affected software

ImageMagick
imagemagick (Debian package)
imagemagick6 (Alpine package)
Opensuse

How to mitigate CVE-2018-16642

Install updates from vendor's website.

ImageMagick - update to 7.0.7-38
imagemagick6 (Alpine package) - update to 6.9.10.37-r0

External References

Related Security Bulletins