CVE-2020-27771: Integer Overflow

Published Nov 16, 2020
·
Updated

In ImageMagick, there is an outside the range of representable values of type 'unsigned char' at coders/pdf.c.

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

Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/872ffe6d0131beec8b47568a4874ffaca91a872e https://github.com/ImageMagick/ImageMagick/commit/9dd1c7e1f8f6c137bfd3293be2554f59456c7b62

Other sources

In RestoreMSCWarning() of /coders/pdf.c there are several areas where calls to GetPixelIndex() could result in values outside the range of representable for the unsigned char type. The patch casts the return value of GetPixelIndex() to ssizet type to avoid this bug. This undefined behavior could be triggered when ImageMagick processes a crafted pdf file. Red Hat Product Security marked this as Low severity because although it could potentially lead to an impact to application availability, no specific impact was demonstrated in this case. This flaw affects ImageMagick versions prior to 7.0.9-0.

Launchpad

Affected Software

8 affected componentsFixes available
redhat/ImageMagick 7.0.9<0
0
ImageMagick ImageMagick<6.9.10-69
ImageMagick ImageMagick>=7.0.0-0<7.0.9
redhat Enterprise Linux=5.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.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

Dec 4, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:48 PM
Description
Oct 23, 2024
Data Sourced
via Ubuntu·09:20 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2020-27771?

CVE-2020-27771 is a vulnerability in the Imagemagick package that allows for values outside the range of representable unsigned char type.

2

What is the severity of CVE-2020-27771?

The severity of CVE-2020-27771 is medium with a severity value of 3.3.

3

How does CVE-2020-27771 affect Imagemagick?

CVE-2020-27771 affects Imagemagick versions 6.9.10.23+dfsg-2.1ubuntu11.4, 6.9.10.23+dfsg-2.1ubuntu13.3, 6.9.11.24+dfsg-1, 6.9.7.4+dfsg-16ubuntu6.11, and 6.9.10.23+dfsg-2.1+deb10u5.

4

What is the fix for CVE-2020-27771?

The fix for CVE-2020-27771 is to update to Imagemagick version 6.9.10.23+dfsg-2.1ubuntu11.4, 6.9.10.23+dfsg-2.1ubuntu13.3, 6.9.11.24+dfsg-1, 6.9.7.4+dfsg-16ubuntu6.11, or 6.9.10.23+dfsg-2.1+deb10u5.

5

Where can I find more information about CVE-2020-27771?

More information about CVE-2020-27771 can be found on MITRE's CVE website, the Ubuntu Security Notices, and the NIST NVD website.

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