{"id":"UBUNTU-CVE-2016-4009","details":"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.","modified":"2025-07-16T08:19:13.825994Z","published":"2016-04-13T16:59:00Z","withdrawn":"2025-07-18T16:43:29Z","upstream":["CVE-2016-4009"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2016-4009"},{"type":"REPORT","url":"https://github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2016-4009"}],"affected":[{"package":{"name":"pillow","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pillow@3.1.1-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.1-1"}]}],"versions":["2.9.0-1","3.0.0-1","3.0.0-1build1","3.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.1-1","binary_name":"python-imaging"},{"binary_version":"3.1.1-1","binary_name":"python-pil"},{"binary_version":"3.1.1-1","binary_name":"python-pil-dbg"},{"binary_version":"3.1.1-1","binary_name":"python-pil-doc"},{"binary_version":"3.1.1-1","binary_name":"python-pil.imagetk"},{"binary_version":"3.1.1-1","binary_name":"python-pil.imagetk-dbg"},{"binary_version":"3.1.1-1","binary_name":"python3-pil"},{"binary_version":"3.1.1-1","binary_name":"python3-pil-dbg"},{"binary_version":"3.1.1-1","binary_name":"python3-pil.imagetk"},{"binary_version":"3.1.1-1","binary_name":"python3-pil.imagetk-dbg"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-4009.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}