Heap-based buffer overflow in ImageMagick - CVE-2019-13308

 

Heap-based buffer overflow in ImageMagick - CVE-2019-13308

Published: September 12, 2019 / Updated: September 12, 2019


Vulnerability identifier: #VU21080
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-2019-13308
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 the "MagickCore/fourier.c" in ComplexImage. A remote attacker can create a specially crafted file, trick the victim into opening it, 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
Debian Linux
Opensuse
imagemagick6 (Alpine package)
imagemagick (Debian package)

How to mitigate CVE-2019-13308

Install update from vendor's website.

ImageMagick - update to 7.0.8-51
imagemagick6 (Alpine package) - addressed in versions 6.9.10.55-r0, 6.9.10.56-r0, 6.9.10.68-r0
imagemagick (Debian package) - update to 8:6.9.10.23+dfsg-2.1+deb10u1

External References

Related Security Bulletins