All reports
Medium

ImageMagick: integer overflow in ExportIndexQuantum() in MagickCore/quantum-export.c

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-20224

Probability of exploitation in the next 30 days: 0.39%

FIRST EPSS · 2026-11-18

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.

An integer overflow issue was found in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in outside the range of representable values for the type 'unsigned char.' When ImageMagick processes a crafted pdf file, this issue could lead to undefined behavior or a crash.