{"id":"CVE-2021-28678","published":"2021-06-02T15:16:23Z","modified":"2024-08-03T21:47:33Z","title":"An issue was discovered in Pillow before 8.2.0","vendor":null,"product":null,"tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00732,"percentile":0.55229,"provenance":"source"},"cwes":[],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28678-fix-blp-dos","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/pull/5377","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.gentoo.org/glsa/202107-33","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":11.05}]},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":[">=5.1.0, <8.2.0","<8.2.0"],"patched":["8.2.0"],"from":["GHSA-hjfx-8p6c-g7gx","PYSEC-2021-94"],"provenance":"source"}],"summary":{"text":"The flaw lies in the BLP image handling of Pillow, the Python imaging library, in versions before 8.2.0, specifically in its BlpImagePlugin component. The plugin does not verify that reads performed after seeking to file offsets actually return data, which is where the weakness sits. An attacker who can get a crafted BLP file processed by an affected Pillow install can cause a denial of service, because the decoder may be run a large number of times against empty data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:16Z"},"euvd":{"id":"EUVD-2021-0185","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-5313","published":"2020-01-03","fixed":"6.2.2","kev":false},{"cve":"CVE-2021-25293","published":"2021-03-19","fixed":"8.1.1","kev":false},{"cve":"CVE-2021-27921","published":"2021-03-03","fixed":"8.1.2","kev":false,"link":{"from":"CVE-2021-27921","to":"CVE-2021-28678","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Pillow","fromFixed":"8.1.2","toFixed":"8.2.0","daysApart":91},{"kind":"same-code","provenance":"machine","files":["src/PIL/BlpImagePlugin.py"],"commits":["https://github.com/python-pillow/Pillow/commit/756fff33128a0b643d10518a26ad04b726dd8973","https://github.com/python-pillow/Pillow/commit/496245aa4365d0827390bd0b6fbd11287453b3a1"],"basis":"shared file"}]}},{"cve":"CVE-2021-28678","published":"2021-06-02","fixed":"8.2.0","kev":false},{"cve":"CVE-2022-24303","published":"2022-03-28","fixed":"9.0.1","kev":false},{"cve":"CVE-2022-30595","published":"2022-05-25","fixed":"9.1.1","kev":false},{"cve":"CVE-2023-4863","published":"2023-09-12","fixed":"10.0.1","kev":true}],"package":"PyPI:Pillow"}}