CVE-2021-20224 json
An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c.
published 2022-08-25 4 y ago modified 2026-07-30 3 mo ago also EUVD-2021-7664 , JLSEC-2026-878
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia ImageMagick_jll 6.9.12+0
- imagemagick imagemagick 6.9.11-57, 7.0.10-57
- imagemagick Debian 14, Debian 13, Debian 12 8:6.9.11.57+dfsg-1
debian advisories DEBIAN-CVE-2021-20224
- imagemagick Ubuntu 18.04 LTS 8:6.9.7.4+dfsg-16ubuntu6.14
- imagemagick Ubuntu 20.04 LTS 8:6.9.10.23+dfsg-2.1ubuntu11.9
- imagemagick Ubuntu Pro 14.04 LTS 8:6.7.7.10-6ubuntu3.13+esm3
- imagemagick Ubuntu Pro 16.04 LTS 8:6.8.9.9-7ubuntu5.16+esm5
- imagemagick Ubuntu Pro 20.04 LTS 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1
ubuntu advisories UBUNTU-CVE-2021-20224
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ImageMagick SLES for SAP 12 SP5, SLES 12 SP5, SLE Workstation Extension 12 SP5 +1 more 6.8.8.1-71.180.1
- ImageMagick SLE Module for Development Tools 15 SP3, SLE Module for Desktop Applications 15 SP3, openSUSE Leap 15.4 +1 more 7.0.7.34-150200.10.36.1
- ImageMagick SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLE High Performance Computing 15 SP1-LTSS 7.0.7.34-150000.3.123.1
suse advisories SUSE-SU-2023:4634-1SUSE-SU-2022:3138-1SUSE-SU-2022:3119-1
- imagemagick Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 7.0.10.57-r0
alpine advisories ALPINE-CVE-2021-20224
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-20224 updated cvss 5.5
ImageMagick: integer overflow in ExportIndexQuantum() in MagickCore/quantum-export.c
-
Red Hat Enterprise Linux 7 ImageMagick, ImageMagick-c++, ImageMagick-perlaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 6 ImageMagick, ImageMagick-c++, ImageMagick-perlnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | ImageMagick_jll | <6.9.12+0 |
6.9.12+0 |
Affected products
- n/a ImageMagick
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/ImageMagick/ImageMagick/pull/3083
issue-tracking, patch, third-party-advisory, web
-
github.com
/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6
patch, third-party-advisory, web
-
github.com
/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d
patch, third-party-advisory, web
-
lists.debian.org
/debian-lts-announce/2023/03/msg00008.html
mailing-list, web
Sources
- CVE List CVE-2021-20224
- NVD CVE-2021-20224
- OSV JLSEC-2026-878
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.