Description
The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Pillow | < unspecified, unspecified – < 8.3.2 | unspecified |
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 | 8.3.2-1 | — |
| Debian 13 | pillow | 8.3.2-1 | — |
| Debian 12 | pillow | 8.3.2-1 | — |
| Debian 11 | pillow | 8.1.2+dfsg-0.3+deb11u3 | DLA-4462-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.0-1 | — |
| Ubuntu 20.04 LTS | pillow | 7.0.0-4ubuntu0.5 | USN-5227-1 |
| Ubuntu 18.04 LTS | pillow | 5.1.0-1ubuntu0.7 | USN-5227-1 |
Show 3 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 16.04 LTS | pillow | 3.1.2-0ubuntu1.6+esm1 | USN-5227-2 |
| Ubuntu Pro 14.04 LTS | pillow | 2.3.0-1ubuntu3.4+esm3 | USN-5227-2 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | python-Pillow | 7.2.0-150300.3.15.1 | SUSE-SU-2024:1673-2 |
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.14.1 | SUSE-SU-2021:3235-1 |
| SUSE OpenStack Cloud Crowbar 8 | python-Pillow | 4.2.1-3.20.2 | SUSE-SU-2021:3234-1 |
| SUSE OpenStack Cloud 9 | python-Pillow | 5.2.0-3.14.1 | SUSE-SU-2021:3235-1 |
| SUSE OpenStack Cloud 8 | python-Pillow | 4.2.1-3.20.2 | SUSE-SU-2021:3234-1 |
| SUSE HPE Helion OpenStack 8 | python-Pillow | 4.2.1-3.20.2 | SUSE-SU-2021:3234-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Pillow | 8.3.2-1.2 | openSUSE-SU-2026:11261-1, openSUSE-SU-2024:13827-1, openSUSE-SU-2024:11209-1 |
| openSUSE Leap 15.5 | python-Pillow | 7.2.0-150300.3.15.1 | SUSE-SU-2024:1673-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.23 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.22 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.21 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.20 | py3-pillow | 8.4.0-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.18 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.17 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.16 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.15 | py3-pillow | 8.4.0-r0 | — |
| Alpine v3.14 | py3-pillow | 8.2.0-r1 | — |
| Alpine v3.13 | py3-pillow | 7.2.0-r2 | — |
| Alpine v3.12 | py3-pillow | 7.1.2-r2 | — |
| Alpine v3.11 | py-pillow | 6.2.1-r1 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | python-pillow +4 | 2.0.0-23.gitd1c6db8.amzn2.0.7 | ALAS2-2023-2118 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | >= 5.2.0, < 8.3.2 | 8.3.2 | GHSA-98vv-pw6r-q6q4 |
| PyPI | pillow | < 8.3.2 | 8.3.2 | PYSEC-2021-317 |
Advisories 12
- openSUSE-SU-2026:11261-1 python313-Pillow-12.3.0-1.1 on GA media SUSE / openSUSE Security Updates · Jul 13, 2026
- USN-5227-2 pillow vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-5227-1 pillow vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-3768-1 pillow - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:13827-1 python310-Pillow-10.3.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3235-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11209-1 python36-Pillow-8.3.2-1.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3234-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1673-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1673-2 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- DLA-4462-1 pillow - security update Debian Security (DSA / DLA) · Feb 1, 2026
- ALAS2-2023-2118 Important: python-pillow security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 19, 2023
References
- https://snyk.io/vuln/SNYK-PYTHON-PILLOW-1319443
- https://pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html
- https://github.com/python-pillow/Pillow/commit/9e08eb8f78fdfd2f476e1b20b7cf38683754866b
- FEDORA-2021-9f020cf155 vendor-advisory
- FEDORA-2021-cbfaefb390 vendor-advisory
- GLSA-202211-10 vendor-advisory
- [debian-lts-announce] 20240322 [SECURITY] [DLA 3768-1] pillow security update mailing-list