CVE-2016-4009
CRITICAL 9.8CVSS 3.0Pillow Integer overflow in ImagingResampleHorizontal
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.
- Published
- 13 Apr 2016
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-119
- Also known as
- GHSA-hvr8-466p-75rhPYSEC-2016-7
- Sources
- NVDJSONOSV GHSA-hvr8-466p-75rhJSONOSV PYSEC-2016-7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
<= 3.1.0 | |
| OSV | PyPI | pillow | < 3.1.1 | 3.1.1 |
References
- http://www.securityfocus.com/bid/86064 · WEB
- https://github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst · Patch, Vendor Advisory, WEB
- https://github.com/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e · Patch, WEB, FIX
- https://github.com/python-pillow/Pillow/pull/1714 · Patch, WEB
- https://security.gentoo.org/glsa/201612-52 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2016-4009 · ADVISORY
- https://github.com/advisories/GHSA-hvr8-466p-75rh · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2016-7.yaml · WEB
- https://github.com/python-pillow/Pillow · PACKAGE
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 13 Apr 2016)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Apr 2016)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Jul 2018)