CVE-2021-28676
HIGH 7.5CVSS 3.1Potential infinite loop in Pillow
An issue was discovered in Pillow before 8.2.0. For FLI data, FliDecode did not properly check that the block advance was non-zero, potentially leading to an infinite loop on load.
- Published
- 2 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-835
- Also known as
- BIT-pillow-2021-28676GHSA-7r7m-5h27-29hpPYSEC-2021-92
- Sources
- NVDJSONOSV GHSA-7r7m-5h27-29hpJSONOSV PYSEC-2021-92JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
< 8.2.0 | 8.2.0 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
= 33 | |
| OSV | PyPI | pillow | < 8.2.0 | 8.2.0 |
References
- https://github.com/python-pillow/Pillow/commit/bb6c11fb889e6c11b0ee122b828132ee763b5856 · Patch, WEB
- https://github.com/python-pillow/Pillow/pull/5377 · Third Party Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2021/07/msg00018.html · Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/ · Mailing List, WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28676-fix-fli-dos · Release Notes, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202107-33 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-28676 · ADVISORY
- https://github.com/advisories/GHSA-7r7m-5h27-29hp · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-92.yaml · WEB
- https://github.com/python-pillow/Pillow · PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 2 Jun 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jun 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Jun 2021)