Heap-based buffer overflow in ImageMagick - CVE-2016-5688

 

Heap-based buffer overflow in ImageMagick - CVE-2016-5688

Published: December 13, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32206
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-5688
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 in The WPG parser in ImageMagick before 6.9.4-4 and 7.x before 7.0.1-5, when a memory limit is set,. A remote attacker can use vectors related to the SetImageExtent return-value check to 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 (Alpine package)

How to mitigate CVE-2016-5688

The vendor has issued the following versions to address this vulnerability: 6.9.4-4, 7.0.1-5.

ImageMagick - addressed in versions 6.9.4-4, 7.0.1-5
imagemagick (Alpine package) - update to 6.9.6.8-r0

External References

Related Security Bulletins