CVE-2016-4009
CRITICAL9.8EPSS 5.3%Pillow Integer overflow in ImagingResampleHorizontal
Published: 7/24/2018Modified: 4/28/2026
Description
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.
Affected packages (3)
- Debian/pillowfrom 0, < 3.1.1-1
- PyPI/pillowfrom 0, < 3.1.1
- PyPI/pillowfrom 0, < 4e0d9b0b9740d258ade40cce248c93777362ac1e | from 0, < 3.1.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (10)
- ADVISORYhttps://github.com/advisories/GHSA-hvr8-466p-75rh
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2016-4009
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2016-4009
- PATCHhttps://github.com/python-pillow/Pillow
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2016-7.yaml
- WEBhttps://github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst
- WEBhttps://github.com/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e
- WEBhttps://github.com/python-pillow/Pillow/pull/1714
- WEBhttps://security.gentoo.org/glsa/201612-52
- WEBhttp://www.securityfocus.com/bid/86064