Integer overflow in Imagemagick

CVE-2021-20224

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.

Vulnerability class: Integer Overflow

EPSS: 0.004 (29.1th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.

Affected products

  • Imagemagick
  • N/a Imagemagick — versions Fixed in ImageMagick-7.0.10-57, ImageMagick6-6.9.11-57

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-20224?
CVE-2021-20224 is a medium-severity vulnerability in Imagemagick, classified under Integer Overflow or Wraparound. CVSS score: 5.5/10. Published 2022-08-25.
How severe is CVE-2021-20224?
Medium severity. CVSS v3 base score is 5.5 out of 10.