Out-of-bounds read in ImageMagick and Debian Linux - CVE-2018-18025
Published: October 7, 2018 / Updated: December 8, 2020
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 in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file. A remote attacker can perform a denial of service attack.
Affected software
Debian Linux
Ubuntu
imagemagick6 (Alpine package)
libmagickcore5-extra (Ubuntu package)
libmagickcore5 (Ubuntu package)
libmagickcore-dev (Ubuntu package)
libmagickwand5 (Ubuntu package)
libmagick++5 (Ubuntu package)
libmagick++-dev (Ubuntu package)
libmagickwand-dev (Ubuntu package)
imagemagick (Ubuntu package)
perlmagick (Ubuntu package)
imagemagick (Debian package)
libmagick++-6.q16-5v5 (Ubuntu package)
imagemagick-6.q16 (Ubuntu package)
libmagickcore-6.q16-2-extra (Ubuntu package)
libmagickcore-6.q16-2 (Ubuntu package)
libmagickcore-6.q16-3-extra (Ubuntu package)
libmagick++-6.q16-7 (Ubuntu package)
libmagickcore-6.q16-3 (Ubuntu package)
libmagick++-6.q16-8 (Ubuntu package)
libmagickcore-6.q16-6 (Ubuntu package)
libmagickcore-6.q16-6-extra (Ubuntu package)
How to mitigate CVE-2018-18025
libmagickcore5-extra (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13+esm8
libmagickcore5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13+esm8
libmagickcore-dev (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13+esm8
libmagickwand5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13+esm8
libmagick++5 (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13+esm8
libmagick++-dev (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13+esm8
libmagickwand-dev (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13+esm8
imagemagick (Ubuntu package) - addressed in versions 8:6.7.7.10-6ubuntu3.13+esm8, 8:6.8.9.9-7ubuntu5.14, 8:6.9.7.4+dfsg-16ubuntu6.7, 8:6.9.10.8+dfsg-1ubuntu2.2, 8:6.9.10.14+dfsg-7ubuntu2.2
perlmagick (Ubuntu package) - update to 8:6.7.7.10-6ubuntu3.13+esm8
imagemagick (Debian package) - update to 8:6.8.9.9-5+deb8u15
libmagick++-6.q16-5v5 (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.14
imagemagick-6.q16 (Ubuntu package) - addressed in versions 8:6.8.9.9-7ubuntu5.14, 8:6.9.7.4+dfsg-16ubuntu6.7, 8:6.9.10.8+dfsg-1ubuntu2.2, 8:6.9.10.14+dfsg-7ubuntu2.2
libmagickcore-6.q16-2-extra (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.14
libmagickcore-6.q16-2 (Ubuntu package) - update to 8:6.8.9.9-7ubuntu5.14
libmagickcore-6.q16-3-extra (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.7
libmagick++-6.q16-7 (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.7
libmagickcore-6.q16-3 (Ubuntu package) - update to 8:6.9.7.4+dfsg-16ubuntu6.7
libmagick++-6.q16-8 (Ubuntu package) - addressed in versions 8:6.9.10.8+dfsg-1ubuntu2.2, 8:6.9.10.14+dfsg-7ubuntu2.2
libmagickcore-6.q16-6 (Ubuntu package) - addressed in versions 8:6.9.10.8+dfsg-1ubuntu2.2, 8:6.9.10.14+dfsg-7ubuntu2.2
libmagickcore-6.q16-6-extra (Ubuntu package) - addressed in versions 8:6.9.10.8+dfsg-1ubuntu2.2, 8:6.9.10.14+dfsg-7ubuntu2.2