Description
An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.
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.1-1 | — |
| Debian 13 | pillow | 8.1.1-1 | — |
| Debian 12 | pillow | 8.1.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pillow | 7.0.0-4ubuntu0.3 | USN-4763-1 |
| Ubuntu 18.04 LTS | pillow | 5.1.0-1ubuntu0.5 | USN-4763-1 |
| Ubuntu 16.04 LTS | pillow | 3.1.2-0ubuntu1.6 | USN-4763-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 | — |
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 |
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 |
| 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.2-r0 | — |
| Alpine v3.23 | py3-pillow | 8.1.2-r0 | — |
| Alpine v3.22 | py3-pillow | 8.1.2-r0 | — |
| Alpine v3.21 | py3-pillow | 8.1.2-r0 | — |
| Alpine v3.20 | py3-pillow | 8.1.2-r0 | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | py3-pillow | 8.1.2-r0 | — |
| Alpine v3.18 | py3-pillow | 8.1.2-r0 | — |
| Alpine v3.17 | py3-pillow | 8.1.2-r0 | — |
| Alpine v3.16 | py3-pillow | 8.1.2-r0 | — |
| Alpine v3.15 | py3-pillow | 8.1.2-r0 | — |
| Alpine v3.14 | py3-pillow | 8.1.2-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | < 8.1.1 | 8.1.1 | GHSA-57h3-9rgr-c24m |
Advisories 7
- openSUSE-SU-2026:11261-1 python313-Pillow-12.3.0-1.1 on GA media SUSE / openSUSE Security Updates · Jul 13, 2026
- USN-4763-1 pillow vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2024:13827-1 python310-Pillow-10.3.0-1.1 on GA media 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
- 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