
CVE catalog
CVE-2021-28678
pillow: CVE-2021-28678
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.73% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pillow | sid | 13.0.0-1 | fixed |
| Debian | pillow | forky | 12.3.0-1 | fixed |
| Debian | pillow | trixie | 11.1.0-5+deb13u4 | fixed |
| Debian | pillow | trixie-security | 11.1.0-5+deb13u3 | fixed |
| Debian | pillow | bookworm | 9.4.0-1.1+deb12u1 | fixed |
| Debian | pillow | bookworm-security | 9.4.0-1.1+deb12u1 | fixed |
| Alpine | py3-pillow | 3.14 | 8.2.0-r0 | fixed |
| Alpine | py3-pillow | 3.15 | 8.2.0-r0 | fixed |
| Ubuntu | pillow | 18.04 | 4.1.1-3build2 | vulnerable |
| Ubuntu | pillow | 18.04 | 4.3.0-2ubuntu1 | vulnerable |
| Ubuntu | pillow | 18.04 | 5.0.0-1 | vulnerable |
| Ubuntu | pillow | 18.04 | 5.1.0-1 | vulnerable |
| Ubuntu | pillow | 18.04 | 5.1.0-1ubuntu0.2 | vulnerable |
| Ubuntu | pillow | 18.04 | 5.1.0-1ubuntu0.3 | vulnerable |
| Ubuntu | pillow | 18.04 | 5.1.0-1ubuntu0.4 | vulnerable |
| Ubuntu | pillow | 18.04 | 5.1.0-1ubuntu0.5 | vulnerable |
| Ubuntu | pillow | 18.04 | 5.1.0-1ubuntu0.6 | fixed |
| Ubuntu | pillow | 20.04 | 6.1.0-1 | vulnerable |
| Ubuntu | pillow | 20.04 | 6.1.0-1build1 | vulnerable |
| Ubuntu | pillow | 20.04 | 6.2.1-2 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4build1 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.1 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.2 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.3 | vulnerable |
| Ubuntu | pillow | 20.04 | 7.0.0-4ubuntu0.4 | fixed |
| Ubuntu | pillow-python2 | pro | 6.2.1-3~build1 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3ubuntu0.1~esm1 | vulnerable |
| Ubuntu | pillow-python2 | pro | 6.2.1-3ubuntu0.1~esm2 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pillow | source | sid | 8.1.2+dfsg-0.2 | not yet assigned | Not reported | [989062] |
| Debian | pillow | source | forky | 8.1.2+dfsg-0.2 | not yet assigned | Not reported | [989062] |
| Debian | pillow | source | trixie | 8.1.2+dfsg-0.2 | not yet assigned | Not reported | [989062] |
| Debian | pillow | source | bookworm | 8.1.2+dfsg-0.2 | not yet assigned | Not reported | [989062] |
| Alpine | py3-pillow | apk | 3.14 | 8.2.0-r0 | Not reported | ALPINE-CVE-2021-28678 | Not reported |
| Alpine | py3-pillow | apk | 3.15 | 8.2.0-r0 | Not reported | ALPINE-CVE-2021-28678 | Not reported |
| Ubuntu | pillow | deb | 18.04 | 5.1.0-1ubuntu0.6 | Not reported | UBUNTU-CVE-2021-28678 | Not reported |
| Ubuntu | pillow | deb | 20.04 | 7.0.0-4ubuntu0.4 | Not reported | UBUNTU-CVE-2021-28678 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [python3-pil]Unknown
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookwormFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
- [python3-pil.imagetk]Unknown
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· amd64 · bookwormFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookwormFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
- [python-pil-doc]Unknown
Source package: [pillow]
Details (4)
9.4.0-1.1+deb12u1· all · bookwormFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookwormFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookworm-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
9.4.0-1.1+deb12u1· all · bookworm-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · bookworm; dsa · pillow · debian · 12
[Debian 13 (Trixie)]
- [python3-pil]Unknown
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· amd64 · trixieFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u4· arm64 · trixieFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u3· amd64 · trixie-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u3· arm64 · trixie-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
- [python3-pil.imagetk]Unknown
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· amd64 · trixieFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u4· arm64 · trixieFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u3· amd64 · trixie-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u3· arm64 · trixie-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
- [python-pil-doc]Unknown
Source package: [pillow]
Details (4)
11.1.0-5+deb13u4· all · trixieFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u4· all · trixieFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u3· all · trixie-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
11.1.0-5+deb13u3· all · trixie-securityFixed · Fixed:
8.1.2+dfsg-0.2dsa · pillow · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2021_4149.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-28678]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-28678]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-28678]
- [https://security-tracker.debian.org/tracker/CVE-2021-28678]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-28678.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2021/wid-sec-w-2022-1835.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]