python3-pil: An issue was discovered in Pillow before 8.2.0
CVE-2021-28677 is fixed in 12 products on 1 platform, first by python-pil 5.1.0-1ubuntu0.6, released May 9, 2021. It is not reported as exploited. Patch Radar priority: High.
An issue was discovered in Pillow before 8.2.0. For EPS data, the readlineimplementation used in EPSImageFile has to deal with any combination of \rand \n as line endings. It used an accidentally quadratic method ofaccumulating lines while looking for a line ending. A malicious EPS filecould use this to perform a DoS of Pillow in the open phase, before animage was accepted for opening.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| python-pil · Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.6 | python-pil 5.1.0-1ubuntu0.6 | May 9, 2021 |
| python-pil.imagetk · Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.6 | python-pil.imagetk 5.1.0-1ubuntu0.6 | May 9, 2021 |
| python-pillow · rocky 8 | 0:5.1.1-16.el8 | RLSA-2021:4149 | Nov 9, 2021 |
| python-pillow-debuginfo · amzn 2023 | 9.4.0-2.amzn2023.0.1 | ALAS2023-2023-146 | Mar 20, 2023 |
| python-pillow-debugsource · amzn 2023 | 9.4.0-2.amzn2023.0.1 | ALAS2023-2023-146 | Mar 20, 2023 |
| python3-pil · Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.6 | python3-pil 5.1.0-1ubuntu0.6 | May 9, 2021 |
| python3-pil · Ubuntu 20.04 LTS (focal) | 7.0.0-4ubuntu0.4 | python3-pil 7.0.0-4ubuntu0.4 | May 9, 2021 |
| python3-pil · Ubuntu 24.10 (oracular) | 8.1.2+dfsg-0.1ubuntu1 | python3-pil 8.1.2+dfsg-0.1ubuntu1 | Jan 16, 2026 |
| python3-pil · Ubuntu 25.04 (plucky) | 8.1.2+dfsg-0.1ubuntu1 | python3-pil 8.1.2+dfsg-0.1ubuntu1 | Jan 16, 2026 |
| python3-pil.imagetk · Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.6 | python3-pil.imagetk 5.1.0-1ubuntu0.6 | May 9, 2021 |
| python3-pil.imagetk · Ubuntu 20.04 LTS (focal) | 7.0.0-4ubuntu0.4 | python3-pil.imagetk 7.0.0-4ubuntu0.4 | May 9, 2021 |
| python3-pil.imagetk · Ubuntu 24.10 (oracular) | 8.1.2+dfsg-0.1ubuntu1 | python3-pil.imagetk 8.1.2+dfsg-0.1ubuntu1 | Jan 16, 2026 |
| python3-pil.imagetk · Ubuntu 25.04 (plucky) | 8.1.2+dfsg-0.1ubuntu1 | python3-pil.imagetk 8.1.2+dfsg-0.1ubuntu1 | Jan 16, 2026 |
| python3-pillow · RHEL 8 | 0:5.1.1-16.el8 | RHSA-2021:4149 | Nov 9, 2021 |
| python3-pillow · almalinux 8 | 5.1.1-16.el8 | ALSA-2021:4149 | Nov 9, 2021 |
| python3-pillow · amzn 2023 | 9.4.0-2.amzn2023.0.1 | ALAS2023-2023-146 | Mar 20, 2023 |
| python3-pillow-debuginfo · amzn 2023 | 9.4.0-2.amzn2023.0.1 | ALAS2023-2023-146 | Mar 20, 2023 |
| python3-pillow-devel · amzn 2023 | 9.4.0-2.amzn2023.0.1 | ALAS2023-2023-146 | Mar 20, 2023 |
| python3-pillow-tk · amzn 2023 | 9.4.0-2.amzn2023.0.1 | ALAS2023-2023-146 | Mar 20, 2023 |
| python3-pillow-tk-debuginfo · amzn 2023 | 9.4.0-2.amzn2023.0.1 | ALAS2023-2023-146 | Mar 20, 2023 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.