# CVE-2021-34552: python-Pillow: This update for python-Pillow fixes the following issues:  - Fixed ImagePath.Path array handling (bsc#1194552, CVE-20...

CVE-2021-34552 is fixed in 13 products on 1 platform, first by RHSA-2021:4149, released November 9, 2021. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-34552
- Priority: High
- CVSS: 9.1 (Moderate)
- EPSS: 0.0319
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 13, 2021

## Description

This update for python-Pillow fixes the following issues:  - Fixed ImagePath.Path array handling (bsc#1194552, CVE-2022-22815, bsc#1194551, CVE-2022-22816) - Use snprintf instead of sprintf (bsc#1188574, CVE-2021-34552) - Fix Memory DOS in Icns, Ico and Blp Image Plugins. (bsc#1183110, CVE-2021-27921, bsc#1183108, CVE-2021-27922, bsc#1183107, CVE-2021-27923) - Fix OOB read in SgiRleDecode.c (bsc#1183102, CVE-2021-25293) - Use more specific regex chars to prevent ReDoS (bsc#1183101, CVE-2021-25292) - Fix negative size read in TiffDecode.c (bsc#1183105, CVE-2021-25290) - Raise ValueError if color specifier is too long (bsc#1190229, CVE-2021-23437) - Incorrect error code checking in TiffDecode.c (bsc#1183103, CVE-2021-25289) - OOB Write in TiffDecode.c (bsc#1180833, CVE-2020-35654)

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-Pillow sles 15.6 | 7.2.0-150300.3.15.1 | [SUSE-SU-2024:1673-2](https://patchblox.com/security/data/fix/linux/suse-su-2024-1673-2.md) | Jun 13, 2024 |
| Linux | python-pil Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.7 | [python-pil 5.1.0-1ubuntu0.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-pil-5.1.0-1ubuntu0.7.md) | Jan 10, 2022 |
| Linux | python-pil.imagetk Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.7 | [python-pil.imagetk 5.1.0-1ubuntu0.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-pil.imagetk-5.1.0-1ubuntu0.7.md) | Jan 10, 2022 |
| Linux | python-pillow rocky 8 | 0:5.1.1-16.el8 | [RLSA-2021:4149](https://patchblox.com/security/data/fix/linux/rlsa-2021-4149.md) | Nov 9, 2021 |
| Linux | python-pillow-debuginfo amzn 2023 | 9.4.0-2.amzn2023.0.1 | [ALAS2023-2023-146](https://patchblox.com/security/data/fix/linux/alas2023-2023-146.md) | Mar 20, 2023 |
| Linux | python-pillow-debugsource amzn 2023 | 9.4.0-2.amzn2023.0.1 | [ALAS2023-2023-146](https://patchblox.com/security/data/fix/linux/alas2023-2023-146.md) | Mar 20, 2023 |
| Linux | python3-pil Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.7 | [python3-pil 5.1.0-1ubuntu0.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-pil-5.1.0-1ubuntu0.7.md) | Jan 10, 2022 |
| Linux | python3-pil Ubuntu 20.04 LTS (focal) | 7.0.0-4ubuntu0.5 | [python3-pil 7.0.0-4ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-pil-7.0.0-4ubuntu0.5.md) | Jan 10, 2022 |
| Linux | python3-pil.imagetk Ubuntu 18.04.6 LTS (bionic) | 5.1.0-1ubuntu0.7 | [python3-pil.imagetk 5.1.0-1ubuntu0.7](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-pil.imagetk-5.1.0-1ubuntu0.7.md) | Jan 10, 2022 |
| Linux | python3-pil.imagetk Ubuntu 20.04 LTS (focal) | 7.0.0-4ubuntu0.5 | [python3-pil.imagetk 7.0.0-4ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-pil.imagetk-7.0.0-4ubuntu0.5.md) | Jan 10, 2022 |
| Linux | python3-pillow RHEL 8 | 0:5.1.1-16.el8 | [RHSA-2021:4149](https://patchblox.com/security/data/fix/linux/rhsa-2021-4149.md) | Nov 9, 2021 |
| Linux | python3-pillow almalinux 8 | 5.1.1-16.el8 | [ALSA-2021:4149](https://patchblox.com/security/data/fix/linux/alsa-2021-4149.md) | Nov 9, 2021 |
| Linux | python3-pillow amzn 2023 | 9.4.0-2.amzn2023.0.1 | [ALAS2023-2023-146](https://patchblox.com/security/data/fix/linux/alas2023-2023-146.md) | Mar 20, 2023 |
| Linux | python3-pillow-debuginfo amzn 2023 | 9.4.0-2.amzn2023.0.1 | [ALAS2023-2023-146](https://patchblox.com/security/data/fix/linux/alas2023-2023-146.md) | Mar 20, 2023 |
| Linux | python3-pillow-devel amzn 2023 | 9.4.0-2.amzn2023.0.1 | [ALAS2023-2023-146](https://patchblox.com/security/data/fix/linux/alas2023-2023-146.md) | Mar 20, 2023 |
| Linux | python3-pillow-tk amzn 2023 | 9.4.0-2.amzn2023.0.1 | [ALAS2023-2023-146](https://patchblox.com/security/data/fix/linux/alas2023-2023-146.md) | Mar 20, 2023 |
| Linux | python3-pillow-tk-debuginfo amzn 2023 | 9.4.0-2.amzn2023.0.1 | [ALAS2023-2023-146](https://patchblox.com/security/data/fix/linux/alas2023-2023-146.md) | Mar 20, 2023 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
