CVE-2021-20176: Divide by Zero

Published Jan 15, 2021
·
Updated

A divide-by-zero flaw was found in ImageMagick 6.9.11-57 and 7.0.10-57 in gem.c. This flaw allows an attacker who submits a crafted file that is processed by ImageMagick to trigger undefined behavior through a division by zero. The highest threat from this vulnerability is to system availability.

Other sources

A flaw was found in ImageMagick in MagickCore/gem.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.10-56.

References: https://github.com/ImageMagick/ImageMagick/issues/3077

Red Hat

Affected Software

6 affected componentsFixes available
redhat/ImageMagick 6.9.11<57
57
redhat/ImageMagick 7.0.10<57
57
ImageMagick ImageMagick<6.9.11-57
ImageMagick ImageMagick>=7.0.0-0<7.0.10-56
Debian Debian Linux=9.0
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

Feb 5, 2021
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
Dec 21, 2024
Data Sourced
via Ubuntu·02:05 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2021-20176?

CVE-2021-20176 is a divide-by-zero vulnerability found in ImageMagick 6.9.11-57 and 7.0.10-57.

2

How does CVE-2021-20176 impact system availability?

CVE-2021-20176 can cause system unavailability.

3

What is the severity of CVE-2021-20176?

The severity of CVE-2021-20176 is medium with a severity value of 5.5.

4

Which software versions are affected by CVE-2021-20176?

ImageMagick versions 6.9.11-57 and 7.0.10-57 are affected by CVE-2021-20176.

5

How can I fix CVE-2021-20176?

To fix CVE-2021-20176, update ImageMagick to a version that includes the fix.

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