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

Published · last modified .

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.

EPSS exploit prediction

EPSS 0.004, 33.5th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

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

Weakness classification (CWE)

References