CVE-2016-4009Python Pillow
Critical 9.8 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 75
- CVSS 3.0
- 9.8
- EPSS
- 7.9% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Apr 13, 2016
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pillow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
< 3.1.1 |
3.1.1 |
pip install "pillow>=3.1.1" |
| PyPI | pillow |
< 3.1.1 |
3.1.1 |
pip install "pillow>=3.1.1" |
Per OSV / GitHub Advisories (GHSA-hvr8-466p-75rh, PYSEC-2016-7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | ≤ 3.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com
- github.com Patch Vendor Advisory
- github.com Patch
- github.com Patch
- security.gentoo.org