Vulnerabilities · 2016 · Python
CVE-2016-0740
Python Pillow vulnerability
Buffer overflow in the ImagingLibTiffDecode function in libImaging/TiffDecode.c in Pillow before 3.1.1 allows remote attackers to overwrite memory via a crafted TIFF file.
Affected products
Pillow, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Pillow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst · Patch
- www.debian.org/security/2016/dsa-3499
- github.com/python-pillow/Pillow/commit/6dcbf5bd96b717c58d7b642949da8d323099928e
- security.gentoo.org/glsa/201612-52
- nvd.nist.gov/vuln/detail/CVE-2016-0740
- github.com/advisories/GHSA-hggx-3h72-49ww
- github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2016-5.yaml
- nvd.nist.gov/vuln/detail/CVE-2016-0740
- cve.org/CVERecord?id=CVE-2016-0740
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.