# CVE-2020-27771

- Priority: **Routine**
- Reason: Not severe (CVSS 3.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-12-04 · Modified: 2024-08-04
- Aliases: UBUNTU-CVE-2020-27771, DEBIAN-CVE-2020-27771
- Record: https://cvemate.com/vulnerability/CVE-2020-27771 · JSON: https://cvemate.com/vulnerability/CVE-2020-27771/json

## Description

```text
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.
```

## Signals

- CVSS: 4.3 medium (v2.0, NVD) AV:N/AC:M/Au:N/C:N/I:N/A:P
- EPSS: 1.175%, percentile 68.596%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian imagemagick (Debian): \< 8:6.9.11.24+dfsg-1
- ubuntu imagemagick (Ubuntu): \< 8:6.8.9.9-7ubuntu5.16+esm11 \| \< 8:6.9.7.4+dfsg-16ubuntu6.11 \| \< 8:6.9.10.23+dfsg-2.1ubuntu11.4
- debian debian\_linux: 9.0
- imagemagick imagemagick: \< 6.9.10-69 \| ≥ 7.0.0-0, \< 7.0.9
- redhat enterprise\_linux: 5.0 \| 6.0 \| 7.0

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1898290>
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html>
- <https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html>
- <https://ubuntu.com/security/CVE-2020-27771>
- <https://ubuntu.com/security/notices/USN-4988-1>
- <https://www.cve.org/CVERecord?id=CVE-2020-27771>
- <https://ubuntu.com/security/notices/USN-7068-1>
- <https://security-tracker.debian.org/tracker/CVE-2020-27771>

---

Data as of 2026-12-05T04:23:22.296Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
