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 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
- github.com/ImageMagick/ImageMagick/pull/3083 (Patch, Third Party Advisory, Issue Tracking)
- github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f1… (Patch, Third Party Advisory)
- github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c… (Patch, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2023/03/msg00008.html (mailing-list)
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.