CVE-2020-27754: Integer Overflow

Published Nov 3, 2020
·
Updated

In ImageMagick, there are outside the range of representable values of type 'long' and signed integer overflow at MagickCore/quantize.c.

Reference: https://github.com/ImageMagick/ImageMagick/issues/1754

Upstream patch: https://github.com/ImageMagick/ImageMagick6/commit/d5df600d43c8706df513a3273d09aee6f54a9233

Other sources

In IntensityCompare() of /magick/quantize.c, there are calls to PixelPacketIntensity() which could return overflowed values to the caller when ImageMagick processes a crafted input file. To mitigate this, the patch introduces and uses the ConstrainPixelIntensity() function, which forces the pixel intensities to be within the proper bounds in the event of an overflow. This flaw affects ImageMagick versions prior to 6.9.10-69 and 7.0.8-69.

Launchpad

Affected Software

6 affected componentsFixes available
redhat/ImageMagick 6.9.10<69
69
redhat/ImageMagick 7.0.8<69
69
ImageMagick ImageMagick<6.9.10-69
ImageMagick ImageMagick>=7.0.8<7.0.8-69
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

Dec 8, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:47 PM
Description
Oct 23, 2024
Data Sourced
via Ubuntu·09:20 AM
RemedyDescriptionSeverityAffected Software
Apr 6, 2025
Data Sourced
via Debian·11:43 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2020-27754?

The severity of CVE-2020-27754 is medium.

2

How does CVE-2020-27754 affect ImageMagick?

CVE-2020-27754 affects ImageMagick versions 8:6.9.10.23+dfsg-2.1ubuntu11.4, 8:6.9.10.23+dfsg-2.1ubuntu13.3, 8:6.9.11.24+dfsg-1, and 8:6.9.7.4+dfsg-16ubuntu6.11.

3

What is the remedy for CVE-2020-27754 on Ubuntu?

To fix CVE-2020-27754 on Ubuntu, update ImageMagick to version 8:6.9.10.23+dfsg-2.1ubuntu11.4, 8:6.9.10.23+dfsg-2.1ubuntu13.3, 8:6.9.11.24+dfsg-1, or 8:6.9.7.4+dfsg-16ubuntu6.11.

4

What is the remedy for CVE-2020-27754 on Debian?

To fix CVE-2020-27754 on Debian, update ImageMagick to version 8:6.9.10.23+dfsg-2.1+deb10u5, 8:6.9.11.60+dfsg-1.3+deb11u1, or 8:6.9.11.60+dfsg-1.6.

5

What is the Common Weakness Enumeration (CWE) ID for CVE-2020-27754?

The Common Weakness Enumeration (CWE) ID for CVE-2020-27754 is 190.

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