CVE-2021-20224

imagemagick: An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c

CVE-2021-20224 is fixed in 29 products on 1 platform, first by imagemagick 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1, released August 25, 2022. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
5.5
medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0039
33rd percentile

An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the 'unsigned char'. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.

Where it's fixed

ProductFixed inFixReleased
Linux
imagemagick · Debian 12.15 (bookworm) 8:6.9.11.57+dfsg-1 DEBIAN-CVE-2021-20224 Aug 25, 2022
imagemagick · Debian 13.5 (trixie) 8:6.9.11.57+dfsg-1 DEBIAN-CVE-2021-20224 Aug 25, 2022
imagemagick · Debian 14 8:6.9.11.57+dfsg-1 DEBIAN-CVE-2021-20224 Aug 25, 2022
imagemagick · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 imagemagick 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
imagemagick · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 imagemagick 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
imagemagick-6-common · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 imagemagick-6-common 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
imagemagick-6-common · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 imagemagick-6-common 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
imagemagick-6.q16 · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 imagemagick-6.q16 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
imagemagick-6.q16 · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 imagemagick-6.q16 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
imagemagick-6.q16hdri · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 imagemagick-6.q16hdri 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
imagemagick-6.q16hdri · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 imagemagick-6.q16hdri 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
imagemagick-common · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 imagemagick-common 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
imagemagick-common · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 imagemagick-common 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libimage-magick-perl · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libimage-magick-perl 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libimage-magick-perl · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libimage-magick-perl 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libimage-magick-q16-perl · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libimage-magick-q16-perl 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libimage-magick-q16-perl · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libimage-magick-q16-perl 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libimage-magick-q16hdri-perl · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libimage-magick-q16hdri-perl 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libimage-magick-q16hdri-perl · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libimage-magick-q16hdri-perl 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagick++-6-headers · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagick++-6-headers 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagick++-6-headers · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagick++-6-headers 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagick++-6.q16-7 · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagick++-6.q16-7 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagick++-6.q16-8 · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagick++-6.q16-8 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagick++-6.q16hdri-7 · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagick++-6.q16hdri-7 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagick++-6.q16hdri-8 · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagick++-6.q16hdri-8 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickcore-6-arch-config · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickcore-6-arch-config 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickcore-6-arch-config · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickcore-6-arch-config 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickcore-6-headers · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickcore-6-headers 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickcore-6-headers · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickcore-6-headers 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickcore-6.q16-3 · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickcore-6.q16-3 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickcore-6.q16-3-extra · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickcore-6.q16-3-extra 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickcore-6.q16-6 · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickcore-6.q16-6 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickcore-6.q16-6-extra · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickcore-6.q16-6-extra 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickcore-6.q16hdri-3 · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickcore-6.q16hdri-3 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickcore-6.q16hdri-3-extra · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickcore-6.q16hdri-3-extra 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickcore-6.q16hdri-6 · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickcore-6.q16hdri-6 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickcore-6.q16hdri-6-extra · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickcore-6.q16hdri-6-extra 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickwand-6-headers · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickwand-6-headers 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickwand-6-headers · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickwand-6-headers 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickwand-6.q16-3 · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickwand-6.q16-3 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickwand-6.q16-6 · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickwand-6.q16-6 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
libmagickwand-6.q16hdri-3 · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 libmagickwand-6.q16hdri-3 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
libmagickwand-6.q16hdri-6 · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 libmagickwand-6.q16hdri-6 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022
perlmagick · Ubuntu 18.04.6 LTS (bionic) 8:6.9.7.4+dfsg-16ubuntu6.14 perlmagick 8:6.9.7.4+dfsg-16ubuntu6.14 Aug 22, 2023
perlmagick · Ubuntu 20.04 LTS (focal) 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 perlmagick 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 Aug 25, 2022

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.