CVE-2021-20309: Divide by Zero

Published Apr 6, 2021
·
Updated

A flaw was found in ImageMagick before version 7.0.11 and 6.9.12. A division by zero in WaveImage() of MagickCore/visual-effects.c may trigger undefined behavior via crafted image file.

Upstream issue:

https://github.com/ImageMagick/ImageMagick/issues/3296

Upstream patch:

https://github.com/ImageMagick/ImageMagick/commit/94174beff065cb5683d09d79e992c3ebbdead311 https://github.com/ImageMagick/ImageMagick6/commit/f1e68d22d1b35459421710587a0dcbab6900b51f

Other sources

A flaw was found in ImageMagick in versions before 7.0.11 and before 6.9.12, where a division by zero in WaveImage() of MagickCore/visual-effects.c may trigger undefined behavior via a crafted image file submitted to an application using ImageMagick. The highest threat from this vulnerability is to system availability.

Launchpad

Affected Software

6 affected componentsFixes available
redhat/ImageMagick<7.0.11
7.0.11
redhat/ImageMagick<6.9.12
6.9.12
ImageMagick ImageMagick<6.9.12
ImageMagick ImageMagick>=7.0.0-0<7.0.11-0
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

May 11, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:54 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:30 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2021-20309?

CVE-2021-20309 is a vulnerability found in ImageMagick versions before 7.0.11 and before 6.9.12.

2

How severe is the CVE-2021-20309 vulnerability?

The severity of the CVE-2021-20309 vulnerability is high, with a CVSS score of 7.5.

3

How does the CVE-2021-20309 vulnerability occur?

The CVE-2021-20309 vulnerability occurs due to a division by zero in the WaveImage() function of ImageMagick's visual-effects.c file.

4

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

ImageMagick versions before 7.0.11 and before 6.9.12 are affected by CVE-2021-20309.

5

Are there any fixes available for CVE-2021-20309?

Yes, there are remediation measures available. Please refer to the official Ubuntu and Debian security notices for specific version updates and fixes.

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