Vulnerabilities · 2016 · Python
CVE-2016-4009
Python Pillow vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Pillow. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Pillow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst · Patch
- github.com/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e · Patch
- github.com/python-pillow/Pillow/pull/1714 · Patch
- www.securityfocus.com/bid/86064
- security.gentoo.org/glsa/201612-52
- nvd.nist.gov/vuln/detail/CVE-2016-4009
- github.com/advisories/GHSA-hvr8-466p-75rh
- github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2016-7.yaml
- nvd.nist.gov/vuln/detail/CVE-2016-4009
- cve.org/CVERecord?id=CVE-2016-4009
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.