| Name | CVE-2016-4009 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| pillow (PTS) | bullseye (security), bullseye | 8.1.2+dfsg-0.3+deb11u2 | fixed |
| bookworm, bookworm (security) | 9.4.0-1.1+deb12u1 | fixed | |
| trixie | 11.1.0-5 | fixed | |
| forky | 11.3.0-1 | fixed | |
| sid | 12.0.0-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| pillow | source | (unstable) | 3.1.1-1 | |||
| python-imaging | source | (unstable) | (unfixed) |
https://github.com/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e
Upstream confirmed that versions prior 2.7 are not vulnerable.
https://github.com/python-pillow/Pillow/pull/1714
https://github.com/python-pillow/Pillow/issues/1737