Description
In Pillow before 8.1.0, SGIRleDecode has a 4-byte buffer over-read when decoding crafted SGI RLE image files because offsets and length tables are mishandled.
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.1.0-1 | — |
| Debian 13 | pillow | 8.1.0-1 | — |
| Debian 12 | pillow | 8.1.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pillow | 7.0.0-4ubuntu0.2 | USN-4697-1 |
| Ubuntu 18.04 LTS | pillow | 5.1.0-1ubuntu0.4 | USN-4697-1 |
| Ubuntu 16.04 LTS | pillow | 3.1.2-0ubuntu1.5 | USN-4697-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | pillow-python2 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | python-pillow +1 | 5.1.1-16.el8 | RHSA-2021:4149 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | python3-pillow | 5.1.1-16.el8 | ALSA-2021:4149 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | python-pillow | 5.1.1-16.el8 | RLSA-2021:4149 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud Crowbar 9 | python-Pillow | 5.2.0-3.8.1 | SUSE-SU-2021:1938-1 |
| SUSE OpenStack Cloud 9 | python-Pillow | 5.2.0-3.8.1 | SUSE-SU-2021:1938-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.2 | python-CairoSVG | 2.5.1-lp152.2.3.1 | openSUSE-SU-2021:1134-1 |
| openSUSE Leap 15.2 | python-Pillow | 8.3.1-lp152.5.3.1 | openSUSE-SU-2021:1134-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.23 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.22 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.21 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.20 | py3-pillow | 8.1.0-r0 | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.18 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.17 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.16 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.15 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.14 | py3-pillow | 8.1.0-r0 | — |
| Alpine v3.13 | py3-pillow | 7.2.0-r1 | — |
| Alpine v3.12 | py3-pillow | 7.1.2-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | >= 4.3.0, < 8.1.0 | 8.1.0 | GHSA-hf64-x4gq-p99h |
Advisories 10
- ALSA-2021:4149 Moderate: python-pillow security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2022-1835 Red Hat Enterprise Linux (python-pillow): Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 14, 2026
- openSUSE-SU-2026:11261-1 python313-Pillow-12.3.0-1.1 on GA media SUSE / openSUSE Security Updates · Jul 13, 2026
- RHSA-2021:4149 Red Hat Security Advisory: python-pillow security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-4697-1 pillow vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- RLSA-2021:4149 Moderate: python-pillow security update Rocky Linux Security Advisories · Feb 4, 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:1938-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
- openSUSE-SU-2021:1134-1 Security update for python-CairoSVG, python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://pillow.readthedocs.io/en/stable/releasenotes/index.html
- FEDORA-2021-a8ddc1ce70 vendor-advisory
- FEDORA-2021-880aa7bd27 vendor-advisory