CVE-2020-27771

LOW

ImageMagick < 6.9.10-69 - Integer Overflow in PDF Coder

Title source: llm
STIX 2.1

Description

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 ssize_t 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.

References (3)

Core 3
Core References
Mailing List, Third Party Advisory mailing-list
https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html
Exploit, Issue Tracking, Patch, Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1898290

Scores

CVSS v3 3.3
EPSS 0.0011
EPSS Percentile 28.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Details

CWE
CWE-190
Status published
Products (5)
debian/debian_linux 9.0
imagemagick/imagemagick < 6.9.10-69
redhat/enterprise_linux 5.0
redhat/enterprise_linux 6.0
redhat/enterprise_linux 7.0
Published Dec 04, 2020
Tracked Since Feb 18, 2026