CVE-2020-27771: Integer Overflow
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
Remediation
Patch Available
Event History
Frequently Asked Questions
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.
What is the severity of CVE-2020-27771?
The severity of CVE-2020-27771 is medium with a severity value of 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.
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.
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.