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.
{
"unresolved_ranges": [
{
"source": "CPE_FIELD",
"extracted_events": [
{
"last_affected": "33"
}
],
"cpe": "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
}
]
}{
"source": [
"CPE_FIELD",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "8.2.0"
}
],
"cpe": "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-28676.json"
[
{
"target": {
"file": "src/libImaging/FliDecode.c"
},
"signature_version": "v1",
"source": "https://github.com/python-pillow/pillow/commit/bb6c11fb889e6c11b0ee122b828132ee763b5856",
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2021-28676-0f8c3b10",
"digest": {
"threshold": 0.9,
"line_hashes": [
"276082854084581862752233006547183163125",
"154487951280376738261317199800104056040",
"196791183223561229908953348714930460735",
"108716279980050847017816890668636521998"
]
}
},
{
"target": {
"function": "ImagingFliDecode",
"file": "src/libImaging/FliDecode.c"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"source": "https://github.com/python-pillow/pillow/commit/bb6c11fb889e6c11b0ee122b828132ee763b5856",
"id": "CVE-2021-28676-89bdf835",
"digest": {
"function_hash": "90249710371010666261709649153104395496",
"length": 3966.0
}
}
]
"2026-04-12T02:45:06Z"