# CVE-2021-20224

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-08-25 · Modified: 2024-08-03
- Aliases: SUSE-SU-2022:3138-1, UBUNTU-CVE-2021-20224, DEBIAN-CVE-2021-20224, ALPINE-CVE-2021-20224
- Record: https://cvemate.com/vulnerability/CVE-2021-20224 · JSON: https://cvemate.com/vulnerability/CVE-2021-20224/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.389%, percentile 35.118%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine imagemagick (Alpine Linux): ≥ 7.0.0-0, \< 7.0.10.57-r0 \| \< 7.0.10.57-r0
- debian imagemagick (Debian): \< 8:6.9.11.57+dfsg-1
- ubuntu imagemagick (Ubuntu): \< 8:6.7.7.10-6ubuntu3.13+esm3 \| \< 8:6.8.9.9-7ubuntu5.16+esm5 \| \< 8:6.9.7.4+dfsg-16ubuntu6.14 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.9 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1
- imagemagick imagemagick: \< 6.9.11-57 \| ≥ 7.0.0-0, \< 7.0.10-57
- suse ImageMagick&distro=SUSE Linux Enterprise Server 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.180.1
- suse ImageMagick&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.180.1
- suse ImageMagick&distro=SUSE Linux Enterprise Software Development Kit 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.180.1
- suse ImageMagick&distro=SUSE Linux Enterprise Workstation Extension 12 SP5 (SUSE Linux Enterprise): \< 6.8.8.1-71.180.1

## References

- <https://github.com/ImageMagick/ImageMagick/pull/3083>
- <https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6>
- <https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d>
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20223138-1/>
- <https://bugzilla.suse.com/1202800>
- <https://www.suse.com/security/cve/CVE-2021-20224>
- <https://ubuntu.com/security/CVE-2021-20224>
- <https://ubuntu.com/security/notices/USN-5736-1>
- <https://ubuntu.com/security/notices/USN-5736-2>
- <https://ubuntu.com/security/notices/USN-6200-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-20224>
- <https://security-tracker.debian.org/tracker/CVE-2021-20224>
- <https://security.alpinelinux.org/vuln/CVE-2021-20224>

---

Data as of 2026-12-05T05:13:37.722Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
