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
- 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)
- [debian-lts-announce] 20230311 [SECURITY] [DLA 3357-1] imagemagick security update (mailing-list)