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 (29.9th percentile), scored .

Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 30th percentile — 29.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2021-20224: held from 0.004 to 0.004.

EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000

Affected products

  • Imagemagick
  • 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.