CVE-2016-4009

NameCVE-2016-4009
DescriptionInteger 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pillow (PTS)jessie, jessie (lts)2.6.1-2+deb8u9fixed
stretch (security)4.0.0-4+deb9u4fixed
stretch (lts), stretch4.0.0-4+deb9u5fixed
buster5.4.1-2+deb10u3fixed
buster (security)5.4.1-2+deb10u6fixed
bullseye (security), bullseye8.1.2+dfsg-0.3+deb11u1fixed
bookworm9.4.0-1.1fixed
sid, trixie10.3.0-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pillowsourcejessie(not affected)
pillowsource(unstable)3.1.1-1
python-imagingsourcesqueeze(not affected)
python-imagingsourcewheezy(not affected)
python-imagingsource(unstable)(unfixed)

Notes

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

Search for package or bug name: Reporting problems