CVE-2020-27771Integer Overflow or Wraparound in Imagemagick

Severity
3.3LOWNVD
EPSS
0.1%
top 71.62%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 4
Latest updateOct 15

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 s

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LExploitability: 1.8 | Impact: 1.4

Affected Packages4 packages

debiandebian/imagemagick< imagemagick 8:6.9.11.24+dfsg-1 (bookworm)
NVDimagemagick/imagemagick7.0.0-07.0.9+1
Debianimagemagick/imagemagick< 8:6.9.11.24+dfsg-1+3
CVEListV5imagemagick/imagemagickImageMagick 7.0.9-0

Also affects: Debian Linux 9.0, Enterprise Linux 5.0, 6.0, 7.0

Patches

🔴Vulnerability Details

2
GHSA
GHSA-33vv-cq7w-wvpr: In RestoreMSCWarning() of /coders/pdf2022-05-24
OSV
CVE-2020-27771: In RestoreMSCWarning() of /coders/pdf2020-12-04

📋Vendor Advisories

4
Ubuntu
ImageMagick vulnerabilities2024-10-15
Ubuntu
ImageMagick vulnerabilities2021-06-15
Debian
CVE-2020-27771: imagemagick - In RestoreMSCWarning() of /coders/pdf.c there are several areas where calls to G...2020
Red Hat
ImageMagick: outside the range of representable values of type 'unsigned char' at coders/pdf.c2019-10-14
CVE-2020-27771 — Integer Overflow or Wraparound | cvebase