CVE-2016-4009
python-pillow: integer overflow in the ImagingResampleHorizontal function
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium).
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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | pillow | 3.1.1 |
| debian 11 | pillow | 3.1.1-1 |
| debian 12 | pillow | 3.1.1-1 |
| debian 13 | pillow | 3.1.1-1 |
| debian 14 | pillow | 3.1.1-1 |
| echo | pillow | 3.1.1-1 |
References
- http://www.securityfocus.com/bid/86064
- https://access.redhat.com/security/cve/CVE-2016-4009
- https://github.com/advisories/GHSA-hvr8-466p-75rh
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2016-7.yaml
- https://github.com/python-pillow/Pillow
- https://github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst
- https://github.com/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e
- https://github.com/python-pillow/Pillow/pull/1714