Description
An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for truetype in ImageFont when textlength in an ImageDraw instance operates on a long text argument.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pillow | 10.0.0-1 | — |
| Debian 13 | pillow | 10.0.0-1 | — |
| Debian 12 | pillow | 9.4.0-1.1+deb12u1 | DSA-5704-1 |
| Debian 11 | pillow | 8.1.2+dfsg-0.3+deb11u2 | DSA-5704-1 |
| Debian 10 | pillow | 5.4.1-2+deb10u5 | DLA-3768-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | pillow | 9.0.1-1ubuntu0.2 | USN-6618-1 |
| Ubuntu 20.04 LTS | pillow | 7.0.0-4ubuntu0.8 | USN-6618-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | pillow-python2 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | pillow | 5.1.0-1ubuntu0.8+esm2 | — |
| Ubuntu Pro 16.04 LTS | pillow | 3.1.2-0ubuntu1.6+esm3 | — |
| Ubuntu Pro 14.04 LTS | pillow | 2.3.0-1ubuntu3.4+esm5 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | python-pillow +4 | 5.1.1-20.el8 | RHSA-2024:3005 |
| RHEL 7 | python-pillow +5 | 2.0.0-24.gitd1c6db8.el7_9 | RHSA-2024:0345 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform Inside 2 | python-jinja2 +1 | 3.1.3-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform Inside 2 | python-pygments +1 | 2.17.2-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform Inside 2 | python39-jinja2 +1 | 3.1.3-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform Inside 2 | python39-pygments +1 | 2.17.2-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform Developer 2 | python-jinja2 +1 | 3.1.3-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform Developer 2 | python-pygments +1 | 2.17.2-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform Developer 2 | python39-jinja2 +1 | 3.1.3-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform Developer 2 | python39-pygments +1 | 2.17.2-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-installer | 2.4-6.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | ansible-rulebook +3 | 1.0.5-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python-aiohttp +1 | 3.9.1-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python-django +1 | 4.2.10-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python-jinja2 +1 | 3.1.3-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python-pillow +1 | 10.0.1-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python-pycryptodomex +1 | 3.20.0-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python-pygments +1 | 2.17.2-1.el9ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python39-aiohttp +1 | 3.9.1-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python39-django +1 | 4.2.10-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python39-jinja2 +1 | 3.1.3-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python39-pillow +1 | 10.0.1-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python39-pycryptodomex +1 | 3.20.0-1.el8ap | RHSA-2024:1057 |
| Red Hat Ansible Automation Platform 2 | python39-pygments +1 | 2.17.2-1.el8ap | RHSA-2024:1057 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | python3-pillow +3 | 5.1.1-20.el8 | ALSA-2024:3005 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | python-pillow | 5.1.1-20.el8 | RLSA-2024:3005 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 3 | python-Pillow | 9.5.0-150400.5.6.1 | SUSE-SU-2023:4528-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud Crowbar 9 | python-Pillow | 5.2.0-3.20.1 | SUSE-SU-2023:4630-1 |
| SUSE OpenStack Cloud Crowbar 8 | python-Pillow | 4.2.1-3.23.2 | SUSE-SU-2023:4631-1 |
| SUSE OpenStack Cloud 9 | python-Pillow | 5.2.0-3.20.1 | SUSE-SU-2023:4630-1 |
| SUSE OpenStack Cloud 8 | python-Pillow | 4.2.1-3.23.2 | SUSE-SU-2023:4631-1 |
| SUSE HPE Helion OpenStack 8 | python-Pillow | 4.2.1-3.23.2 | SUSE-SU-2023:4631-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Pillow | 10.0.1-2.1 | openSUSE-SU-2026:11261-1, openSUSE-SU-2024:13439-1 |
| openSUSE Leap 15.5 | python-Pillow | 7.2.0-150300.3.3.1 | SUSE-SU-2023:4528-1, SUSE-SU-2023:4465-1 |
| openSUSE Leap 15.4 | python-Pillow | 7.2.0-150300.3.3.1 | SUSE-SU-2023:4528-1, SUSE-SU-2023:4465-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3-pillow +2 | 9.4.0-2.amzn2023.0.3 | ALAS2023-2023-453 |
| Amazon Linux 2 | python-pillow +4 | 2.0.0-23.gitd1c6db8.amzn2.0.12 | ALAS2-2024-2508 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | python3-pillow +3 | 5.1.1-20.el8 | ELSA-2024-3005 |
| Oracle Linux 7 | python-pillow +5 | 2.0.0-24.gitd1c6db8.el7_9 | ELSA-2024-0345 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | < 10.0.0 | 10.0.0 | GHSA-8ghj-p4vj-mr35 |
Advisories 22
- ALSA-2024:3005 Moderate: python-pillow security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2024:1057 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- openSUSE-SU-2026:11261-1 python313-Pillow-12.3.0-1.1 on GA media SUSE / openSUSE Security Updates · Jul 13, 2026
- RHSA-2024:3005 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2024:0345 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-6618-1 pillow vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- WID-SEC-2024-0184 Red Hat Enterprise Linux (pillow): Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Mar 30, 2026
- DSA-5704-1 pillow - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3768-1 pillow - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2024:3005 Moderate: python-pillow security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2023:4630-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13439-1 python310-Pillow-10.0.1-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:4465-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:4528-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:4631-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0522 Red Hat Ansible Automation Platform: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 24, 2025
- ELSA-2024-3005 Moderate: python-pillow security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 23, 2024
- WID-SEC-2024-0873 Oracle Financial Services Applications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 16, 2024
- ALAS2-2024-2508 Moderate: python-pillow security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Mar 27, 2024
- WID-SEC-2024-0423 IBM Business Automation Workflow: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 19, 2024
- ELSA-2024-0345 Moderate: python-pillow security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jan 23, 2024
- ALAS2023-2023-453 Moderate: python-pillow security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Dec 14, 2023
References
- https://github.com/python-pillow/Pillow/pull/7244
- https://github.com/python-pillow/Pillow/commit/1fe1bb49c452b0318cad12ea9d97c3bef188e9a7
- https://devhub.checkmarx.com/cve-details/CVE-2023-44271/
- FEDORA-2023-1a120657f9 vendor-advisory
- [debian-lts-announce] 20240322 [SECURITY] [DLA 3768-1] pillow security update mailing-list