# CVE-2021-28678

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-06-02 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2021-28678, GHSA-hjfx-8p6c-g7gx, BIT-pillow-2021-28678, PYSEC-2021-94, UBUNTU-CVE-2021-28678, DEBIAN-CVE-2021-28678
- Record: https://cvemate.com/vulnerability/CVE-2021-28678 · JSON: https://cvemate.com/vulnerability/CVE-2021-28678/json

## Description

```text
An issue was discovered in Pillow before 8.2.0. For BLP data, BlpImagePlugin did not properly check that reads (after jumping to file offsets) returned data. This could lead to a DoS where the decoder could be run a large number of times on empty data.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.732%, percentile 55.678%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine py3-pillow (Alpine Linux): \< 8.2.0-r0
- debian pillow (Debian): \< 8.1.2+dfsg-0.2
- ubuntu pillow (Ubuntu): \< 5.1.0-1ubuntu0.6 \| \< 7.0.0-4ubuntu0.4
- ubuntu pillow-python2 (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 33
- PyPI pillow (PyPI): ≥ 5.1.0, \< 8.2.0 \| \< 8.2.0
- python pillow: \< 8.2.0

## References

- <https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28678-fix-blp-dos>
- <https://github.com/python-pillow/Pillow/pull/5377>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/>
- <https://security.gentoo.org/glsa/202107-33>
- <https://security.alpinelinux.org/vuln/CVE-2021-28678>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28678>
- <https://github.com/python-pillow/Pillow/pull/5377/commits/496245aa4365d0827390bd0b6fbd11287453b3a1>
- <https://github.com/advisories/GHSA-hjfx-8p6c-g7gx>
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-94.yaml>
- <https://github.com/python-pillow/Pillow>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/>
- <https://ubuntu.com/security/CVE-2021-28678>
- <https://ubuntu.com/security/notices/USN-4963-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-28678>
- <https://security-tracker.debian.org/tracker/CVE-2021-28678>

---

Data as of 2026-12-05T04:36:39.896Z. 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
