Description
Integer overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have unspecified impact via negative values of the new size, which triggers a heap-based buffer overflow.
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.1.1-1 | — |
| Debian 13 | pillow | 3.1.1-1 | — |
| Debian 12 | pillow | 3.1.1-1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud 7 | python-Pillow | 2.8.1-4.9.1 | SUSE-SU-2019:2334-1 |
| SUSE Enterprise Storage 5 | python-Pillow | 2.8.1-3.6.1 | SUSE-SU-2020:1194-1 |
| SUSE Enterprise Storage 4 | python-Pillow | 2.8.1-4.9.1 | SUSE-SU-2019:2334-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pillow | < 3.1.1 | 3.1.1 | GHSA-hvr8-466p-75rh |
Advisories 2
- SUSE-SU-2020:1194-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2334-1 Security update for python-Pillow SUSE / openSUSE Security Updates · Feb 4, 2026