CVE-2016-4009

critical
Published 2016-04-13 · Modified 2023-11-08
CVSS v3
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v2
10.0
VIR risk
9.8

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.

Predictions

Exploit likelihood
97%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2016-4009

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://github.com/python-pillow/Pillow/pull/1714

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://github.com/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e

vendor Authored 2026-05-27

Vendor advisory: cve@mitre.org — https://github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2016-4009.html

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debianbookwormfixed3.1.1-1
debian debianbullseyefixed3.1.1-1
debian debianforkyfixed3.1.1-1
debian debiansidfixed3.1.1-1
debian debiantrixiefixed3.1.1-1

Package impact

EcosystemPackageVulnerableFixed
python PyPIpillow<3.1.13.1.1
python PyPIpillow<4e0d9b0b9740d258ade40cce248c93777362ac1e||<3.1.14e0d9b0b9740d258ade40cce248c93777362ac1e

Application impact

VendorProductVersionsFixed
pythonpillow{"endIncluding":"3.1.0"}

References

CWEs

CWE-119

Verify integrity in audit chain (admin only). AS-IS.