CVE-2016-4009 json
Pillow Integer overflow in ImagingResampleHorizontal
published 2016-04-13 10 y ago modified 2026-06-17 4 mo ago also GHSA-hvr8-466p-75rh , PYSEC-2016-7 , EUVD-2016-0023
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.9%
- EPSS 7.9% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pillow 3.1.1
- pillow Debian 14, Debian 13, Debian 12 3.1.1-1
debian advisories DEBIAN-CVE-2016-4009
- python-Pillow Enterprise Storage 5 2.8.1-3.6.1
- python-Pillow OpenStack Cloud 7, Enterprise Storage 4 2.8.1-4.9.1
suse advisories SUSE-SU-2020:1194-1SUSE-SU-2019:2334-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-4009 updated cvss 4.3
python-pillow: integer overflow in the ImagingResampleHorizontal function
-
Red Hat Enterprise Linux 5 python-imaging Red Hat Enterprise Linux 6 python-imaging, python-imaging-tk, python-imaging-sane Red Hat Enterprise Linux 7 python-pillow, python-pillow-qt, python-pillow-tk, python-pillow-sanenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
7.87% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pillow | <3.1.1 |
3.1.1 |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
github.com
/python-pillow/Pillow/pull/1714
web, patch
-
github.com
/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e
web, patch
-
github.com
/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst
web, patch, vendor-advisory
-
security.gentoo.org
/glsa/201612-52
vendor-advisory, web, advisory
-
securityfocus.com
/bid/86064
vdb-entry, web
-
nvd.nist.gov
/vuln/detail/CVE-2016-4009
advisory
-
github.com
/advisories/GHSA-hvr8-466p-75rh
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2016-7.yaml
web
-
github.com
/python-pillow/Pillow
package
Sources
- CVE List CVE-2016-4009
- GitHub Advisory GHSA-hvr8-466p-75rh
- NVD CVE-2016-4009
- OSV PYSEC-2016-7
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.