Description
Heap-based buffer overflow in the j2k_encode_entry function in Pillow 2.5.0 through 3.1.1 allows remote attackers to cause a denial of service (memory corruption) via a crafted Jpeg2000 file.
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 | 3.2.0-1 | — |
| Debian 13 | pillow | 3.2.0-1 | — |
| Debian 12 | pillow | 3.2.0-1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud 7 | python-Pillow | 2.8.1-4.3.2 | SUSE-SU-2018:1174-1 |
| SUSE OpenStack Cloud 6 | python-Pillow | 2.7.0-4.3.1 | SUSE-SU-2018:1191-1 |
| SUSE Enterprise Storage 5 | python-Pillow | 2.8.1-3.3.1 | SUSE-SU-2019:1321-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Enterprise Storage 4 | python-Pillow | 2.8.1-4.3.2 | SUSE-SU-2018:1174-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Pillow | 3.4.2-1.1 | openSUSE-SU-2026:11261-1, openSUSE-SU-2024:13827-1, openSUSE-SU-2024:11209-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | >= 2.5.0, < 3.1.2 | 3.1.2 | GHSA-v9pc-9mvp-x87g |
Advisories 7
- openSUSE-SU-2026:11261-1 python313-Pillow-12.3.0-1.1 on GA media SUSE / openSUSE Security Updates · Jul 13, 2026
- SUSE-SU-2018:1174-1 Security update for python-Pillow SUSE / openSUSE Security Updates · 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-2018:1191-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10511-1 python3-Pillow-3.4.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:1321-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