5.5medium
An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c.
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.39% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ImageMagick | Fixed in ImageMagick-7.0.10-57, ImageMagick6-6.9.11-57 | CVE List |
| imagemagick imagemagick | before 6.9.11-57, from 7.0.0-0 before 7.0.10-57 | NVD |
Classification
What each source says
CVE List
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.
NVD (es)
Se ha detectado un problema de desbordamiento de enteros en la función ExportIndexQuantum() de ImageMagick en el archivo MagickCore/quantum-export.c. Las llamadas a la función GetPixelIndex() podrían resultar en valores fuera del rango representable para el "unsigned char". Cuando ImageMagick procesa un archivo pdf diseñado, esto podría conllevar a un comportamiento no definido o un bloqueo.
References
| https://github.com/ImageMagick/ImageMagick/pull/3083 | issue-tracking, patch, third-party-advisory | |
| https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6 | patch, third-party-advisory | |
| https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d | patch, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html | mailing-list | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-20224 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-20224 changed 2026-06-17 | Public domain |