7.8
CWE
369
Advisory Published
CVE Published
Updated

CVE-2021-20311: Divide by Zero

First published: Tue Apr 06 2021(Updated: )

A flaw was found in ImageMagick before version 7.0.11. A division by zero in sRGBTransformImage() in MagickCore/colorspace.c may trigger undefined behavior via crafted image file. Upstream patch: <a href="https://github.com/ImageMagick/ImageMagick/commit/70aa86f5d5d8aa605a918ed51f7574f433a18482">https://github.com/ImageMagick/ImageMagick/commit/70aa86f5d5d8aa605a918ed51f7574f433a18482</a>

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
ImageMagick ImageMagick<7.0.11-0
redhat/ImageMagick<7.0.11
7.0.11

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID?

    The vulnerability ID is CVE-2021-20311.

  • What is the title of the vulnerability?

    The title of the vulnerability is 'A flaw was found in ImageMagick in versions before 7.0.11 where a division by zero in sRGBTransformImage() in the MagickCore/colorspace.c may trigger undefined behavior via a crafted image file.'

  • What is the severity of CVE-2021-20311?

    The severity of CVE-2021-20311 is high, with a severity value of 7.5.

  • What is the affected software?

    The affected software is ImageMagick in versions before 7.0.11.

  • How can the vulnerability be exploited?

    The vulnerability can be exploited by submitting a crafted image file that triggers a division by zero in sRGBTransformImage() in the MagickCore/colorspace.c file.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203