CVE-2021-20224: Integer Overflow

Published Aug 25, 2022
·
Updated

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.

Affected Software

3 affected componentsFixes available
ImageMagick<6.9.11-57
ImageMagick>=7.0.0-0<7.0.10-57
debian/imagemagick
8:6.9.11.60+dfsg-1.3+deb11u48:6.9.11.60+dfsg-1.3+deb11u58:6.9.11.60+dfsg-1.6+deb12u28:6.9.11.60+dfsg-1.6+deb12u18:7.1.1.43+dfsg1-18:7.1.1.47+dfsg1-1

Event History

Aug 25, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:53 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:30 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-20224?

The severity of CVE-2021-20224 is medium.

2

How does CVE-2021-20224 affect ImageMagick?

CVE-2021-20224 affects ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c.

3

What is the impact of CVE-2021-20224?

The impact of CVE-2021-20224 is an integer overflow issue which could lead to values outside the range of representable for the 'unsigned char' when processing a crafted pdf file.

4

Which versions of ImageMagick are affected by CVE-2021-20224?

ImageMagick versions 8:6.9.10.23+dfsg-2.1ubuntu11.9, 8:6.9.7.4+dfsg-16ubuntu6.14, 8:6.7.7.10-6ubuntu3.13+, 8:6.9.11.57+dfsg-1, and 8:6.8.9.9-7ubuntu5.16+ are affected by CVE-2021-20224.

5

How can I fix CVE-2021-20224 in ImageMagick?

To fix CVE-2021-20224 in ImageMagick, update to the recommended versions: 8:6.9.10.23+dfsg-2.1ubuntu11.9, 8:6.9.7.4+dfsg-16ubuntu6.14, 8:6.7.7.10-6ubuntu3.13+, 8:6.9.11.57+dfsg-1, or 8:6.8.9.9-7ubuntu5.16+.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203