VDB

CVE-2021-20224

CVE-2021-20224 PUBLISHED

Reported by redhat · Published August 25, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ImageMagick-c++-develAmazon Linux6.9.10.68-6.amzn2.0.3
ImageMagick-docAmazon Linux6.9.10.68-6.amzn2.0.3
ImageMagickAmazon Linux6.9.10.68-6.amzn2.0.3
ImageMagick-perlAmazon Linux6.9.10.68-6.amzn2.0.3
ImageMagick-develAmazon Linux6.9.10.68-6.amzn2.0.3
imagemagickimagemagick7.0.10-57, 6.9.11-57
imagemagickUbuntu:18.04:LTS8:6.9.7.4+dfsg-16ubuntu6.14
imagemagickUbuntu:Pro:20.04:LTS8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1
imagemagickUbuntu:Pro:14.04:LTS8:6.7.7.10-6ubuntu3.13+esm3

Affected products

VendorProductVersions
n/aImageMagickFixed in ImageMagick-7.0.10-57, ImageMagick6-6.9.11-57
amazon:2ImageMagick-c++-devel0
amazon:2ImageMagick-doc0
amazon:2ImageMagick0
amazon:2ImageMagick-perl0
amazon:2ImageMagick-devel0
n/aImageMagickFixed in ImageMagick-7.0.10-57, ImageMagick6-6.9.11-57
amazon:2ImageMagick-c++0
alpineimagemagick0

Timeline

  • Aug 25, 2022 CVE Published
  • Aug 26, 2022 EPSS Score (30 in total, the first dated here)
  • Aug 3, 2024 CVE Updated
  • Mar 7, 2026 Distribution Patch (4 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (7 in total, the first dated here)
  • Aug 27, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-20224
vulnetix vdb fixes CVE-2021-20224

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20224/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›