# CVE-2020-27771: In RestoreMSCWarning() of /coders/pdf.c there are several areas where calls to GetPixelIndex() could result in values outside the range of…

- Severity: Low 3.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-12-04T00:00:00.000Z
- Modified: 2026-06-17T03:09:36.790Z
- Weaknesses: CWE-190
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- ImageMagick: ImageMagick 7.0.9-0
- imagemagick imagemagick: before 6.9.10-69; from 7.0.0-0 before 7.0.9
- redhat enterprise_linux: 5.0; 6.0; 7.0
- debian debian_linux: 9.0

## Every score

- NVD: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1898290> (exploit, issue-tracking, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html> (mailing-list)

## Sources

- CVE List: [CVE-2020-27771](https://www.cve.org/CVERecord?id=CVE-2020-27771), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-27771](https://nvd.nist.gov/vuln/detail/CVE-2020-27771), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-27771 · Whole record: https://cve.day/CVE-2020-27771.json · Rebuilt by cve.day 2026-11-25T22:57:56.036Z
