Out-of-bounds read in ImageMagick - CVE-2019-13391

 

Out-of-bounds read in ImageMagick - CVE-2019-13391

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


Vulnerability identifier: #VU19184
CSH Severity: Low
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-13391
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to heap-based buffer over-read because of incorrect calls to "GetCacheViewVirtualPixels" in the "ComplexImages" function, as defined in the "MagickCore/fourier.c" file. A remote attacker can make calls on the targeted system and perform a denial of service attack.


Affected software

ImageMagick
Debian Linux
Ubuntu
Opensuse
imagemagick6 (Alpine package)
imagemagick (Ubuntu package)
libmagickcore-6.q16-2 (Ubuntu package)
libmagick++-6.q16-5v5 (Ubuntu package)
libmagickcore-6.q16-2-extra (Ubuntu package)
imagemagick-6.q16 (Ubuntu package)
libmagickcore-6.q16-3 (Ubuntu package)
libmagick++-6.q16-7 (Ubuntu package)
libmagickcore-6.q16-3-extra (Ubuntu package)
libmagickcore-6.q16-6 (Ubuntu package)
libmagick++-6.q16-8 (Ubuntu package)
libmagickcore-6.q16-6-extra (Ubuntu package)
imagemagick (Debian package)

How to mitigate CVE-2019-13391

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 (Ubuntu package) - addressed in versions 8:6.7.7.10-6ubuntu3.13+esm21, 8:6.8.9.9-7ubuntu5.15, 8:6.8.9.9-7ubuntu5.16+esm20, 8:6.9.7.4+dfsg-16ubuntu6.8, 8:6.9.7.4+dfsg-16ubuntu6.15+esm12, 8:6.9.10.14+dfsg-7ubuntu2.3, 8:6.9.10.23+dfsg-2.1ubuntu3.1, 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm10, 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm10, 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm9, 8:7.1.2.3+dfsg1-1ubuntu0.1
libmagickcore-6.q16-2 (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.15
libmagick++-6.q16-5v5 (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.15
libmagickcore-6.q16-2-extra (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.15
imagemagick-6.q16 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.15, 8:6.9.7.4+dfsg-16ubuntu6.8, 8:6.9.10.14+dfsg-7ubuntu2.3, 8:6.9.10.23+dfsg-2.1ubuntu3.1
libmagickcore-6.q16-3 (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.8
libmagick++-6.q16-7 (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.8
libmagickcore-6.q16-3-extra (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.8
libmagickcore-6.q16-6 (Ubuntu package) - addressed in versions 8:6.9.10.14+dfsg-7ubuntu2.3, 8:6.9.10.23+dfsg-2.1ubuntu3.1
libmagick++-6.q16-8 (Ubuntu package) - addressed in versions 8:6.9.10.14+dfsg-7ubuntu2.3, 8:6.9.10.23+dfsg-2.1ubuntu3.1
libmagickcore-6.q16-6-extra (Ubuntu package) - addressed in versions 8:6.9.10.14+dfsg-7ubuntu2.3, 8:6.9.10.23+dfsg-2.1ubuntu3.1
imagemagick (Debian package) - update to 8:6.9.10.23+dfsg-2.1+deb10u1

External References

Related Security Bulletins