CVE-2016-0740
Pillow Buffer overflow in ImagingLibTiffDecode
CVE-2016-0740 is a medium vulnerability (CVSS 6.5) in Python Pillow, published February 4, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.66%, the 85th percentile. Fixed in pillow 3.1.1.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.5
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.
- Record
CVE-2016-0740- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-0740- Updated
- 2026-11-02
EUVDEUVD-2016-0021 No score
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.
- Record
EUVD-2016-0021- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hggx-3h72-49ww
6.9
Pillow Buffer overflow in ImagingLibTiffDecode
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.
- Record
GHSA-hggx-3h72-49ww- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-119
- Updated
- 2026-11-02
OSV
6.5
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.
- Record
CVE-2016-0740- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-0740
6.5
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.
- Record
DEBIAN-CVE-2016-0740- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
Show 14 moreShow less
OSVGHSA-hggx-3h72-49ww
6.9
Pillow Buffer overflow in ImagingLibTiffDecode
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.
- Record
GHSA-hggx-3h72-49ww- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-119
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-0740
6.5
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.
- Record
UBUNTU-CVE-2016-0740- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVMGASA-2016-0066 No score
Updated python-pillow packages fix security vulnerability
A buffer overflow in TiffDecode.c causing an arbitrary amount of memory to be overwritten when opening a specially crafted invalid TIFF file (CVE-2016-0740).
A buffer overflow in FliDecode.c causing a segfault when opening FLI files (CVE-2016-0775).
A buffer overflow in PcdDecode.c causing a segfault when opening PhotoCD files.
- Record
MGASA-2016-0066- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10511-1 No score
python3-Pillow-3.4.2-1.1 on GA media
These are all security issues fixed in the python3-Pillow-3.4.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10511-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10567-1 No score
python-Pillow-3.1.1-4.1 on GA media
These are all security issues fixed in the python-Pillow-3.1.1-4.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10567-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11209-1 No score
python36-Pillow-8.3.2-1.2 on GA media
These are all security issues fixed in the python36-Pillow-8.3.2-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11209-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13827-1 No score
python310-Pillow-10.3.0-1.1 on GA media
These are all security issues fixed in the python310-Pillow-10.3.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13827-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11261-1 No score
python313-Pillow-12.3.0-1.1 on GA media
These are all security issues fixed in the python313-Pillow-12.3.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11261-1- Updated
- 2026-11-02
OSVPYSEC-2016-5 No score
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.
- Record
PYSEC-2016-5- Updated
- 2026-11-02
OSVSUSE-SU-2016:0924-1 No score
Security update for python-Pillow
This update for python-Pillow fixes the following security issues:
- Fixed an integer overflow in Resample.c causing writes in the Python heap.
- Fixed a buffer overflow in PcdDecode.c causing a segfault when opening PhotoCD files. CVE-2016-TBD
- Fixed a buffer overflow in FliDecode.c causing a segfault when opening FLI files. CVE-2016-0775 (fixes bsc#965582)
- Fixed a buffer overflow in TiffDecode.c causing an arbitrary amount of memory to be overwritten when opening a specially crafted invalid TIFF file. CVE-2016-0740 (fixes bsc#965579)
- Record
SUSE-SU-2016:0924-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:0935-1 No score
Security update for python-Pillow
This update for python-Pillow fixes the following security issues:
- CVE-2016-0775: Fixed a buffer overflow in FliDecode.c causing a segfault when opening FLI files. (bsc#965582)
- CVE-2016-0740: Fixed a buffer overflow in TiffDecode.c causing an arbitrary amount of memory to be overwritten when opening a specially crafted invalid TIFF file. (bsc#965579)
- Fixed an integer overflow in Resample.c causing writes in the Python heap.
- Fixed a buffer overflow in PcdDecode.c causing a segfault when opening PhotoCD files.
- Record
SUSE-SU-2016:0935-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:1355-1 No score
Security update for python-Pillow
This update for python-Pillow fixes the following security issues:
- CVE-2016-0775: Fixed a buffer overflow in FliDecode.c causing a segfault when opening FLI files. (bsc#965582)
- CVE-2016-0740: Fixed a buffer overflow in TiffDecode.c causing an arbitrary amount of memory to be overwritten when opening a specially crafted invalid TIFF file. (bsc#965579)
- Fixed an integer overflow in Resample.c causing writes in the Python heap.
- Fixed a buffer overflow in PcdDecode.c causing a segfault when opening PhotoCD files.
- Record
SUSE-SU-2016:1355-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:1569-1 No score
Security update for python-Pillow
This update for python-Pillow fixes the following security issues:
- CVE-2016-0775: Fixed a buffer overflow in FliDecode.c causing a segfault when opening FLI files. (bsc#965582)
- CVE-2016-0740: Fixed a buffer overflow in TiffDecode.c causing an arbitrary amount of memory to be overwritten when opening a specially crafted invalid TIFF file. (bsc#965579)
- Fixed an integer overflow in Resample.c causing writes in the Python heap.
- Fixed a buffer overflow in PcdDecode.c causing a segfault when opening PhotoCD files.
- Record
SUSE-SU-2016:1569-1- Updated
- 2026-11-02
OSVUSN-3090-1 No score
Pillow vulnerabilities
It was discovered that a flaw in processing a compressed text chunk in a PNG image could cause the image to have a large size when decompressed, potentially leading to a denial of service. (CVE-2014-9601)
Andrew Drake discovered that Pillow incorrectly validated input. A remote attacker could use this to cause Pillow to crash, resulting in a denial of service. (CVE-2014-3589)
Eric Soroos discovered that Pillow incorrectly handled certain malformed FLI, Tiff, and PhotoCD files. A remote attacker could use this issue to cause Pillow to crash, resulting in a denial of service. (CVE-2016-0740, CVE-2016-0775, CVE-2016-2533)
- Record
USN-3090-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
pillowPyPI |
before 3.1.1 | 3.1.1 |
pillowDebian:12 |
before 3.1.1-1 | 3.1.1-1 |
pillowDebian:13 |
before 3.1.1-1 | 3.1.1-1 |
pillowDebian:14 |
before 3.1.1-1 | 3.1.1-1 |
pillowDebian:8 |
before 2.6.1-2+deb8u2, plus listed versions 2.6.1-22.6.1-2+deb8u1 |
2.6.1-2+deb8u2 |
pillowPyPI |
before 3.1.1, plus listed versions 1.01.11.21.31.4 Show 36 moreShow less1.51.61.7.01.7.11.7.21.7.31.7.41.7.51.7.61.7.71.7.82.0.02.1.02.2.02.2.12.2.22.3.02.3.12.3.22.4.02.5.02.5.12.5.22.5.32.6.02.6.12.6.22.7.02.8.02.8.12.8.22.9.03.0.03.1.03.1.0.rc13.1.0rc1 |
3.1.1 |
python-pillowMageia:5 |
before 2.6.2-2.5.mga5 | 2.6.2-2.5.mga5 |
python-PillowSUSE:OpenStack Cloud 5 |
before 2.7.0-9.1 | 2.7.0-9.1 |
python-PillowSUSE:OpenStack Cloud 6 |
before 2.7.0-3.1 | 2.7.0-3.1 |
python-PillowSUSE:Enterprise Storage 2.1 |
before 2.7.0-3.1 | 2.7.0-3.1 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
python-PillowSUSE:Enterprise Storage 1.0 |
before 2.7.0-7.1 | 2.7.0-7.1 |
python-PillowSUSE:Enterprise Storage 2 |
before 2.7.0-3.2 | 2.7.0-3.2 |
pillowUbuntu:14.04:LTS |
before 2.3.0-1ubuntu3.2, plus listed versions 2.2.1-1ubuntu22.2.1-2ubuntu12.2.1-3ubuntu22.2.1-3ubuntu32.2.1-3ubuntu4 Show 4 moreShow less2.2.1-3ubuntu62.3.0-1ubuntu12.3.0-1ubuntu22.3.0-1ubuntu3 |
2.3.0-1ubuntu3.2 |
python-PillowopenSUSE:Tumbleweed |
before 3.4.2-1.1 | 3.4.2-1.1 |
python-PillowopenSUSE:Tumbleweed |
before 3.1.1-4.1 | 3.1.1-4.1 |
python-PillowopenSUSE:Tumbleweed |
before 8.3.2-1.2 | 8.3.2-1.2 |
python-PillowopenSUSE:Tumbleweed |
before 10.3.0-1.1 | 10.3.0-1.1 |
python-PillowopenSUSE:Tumbleweed |
before 12.3.0-1.1 | 12.3.0-1.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
security.gentoo.org/glsa/201612-52
debian.org/security/2016/dsa-3499
github.com/python-pillow/Pillow/commit/6dcbf5bd96b717c58d7b642949da8d323099928e
github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst
nvd.nist.gov/vuln/detail/CVE-2016-0740
github.com/advisories/GHSA-hggx-3h72-49ww
Show 45 moreShow less
github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2016-5.yaml
security-tracker.debian.org/tracker/CVE-2016-0740
github.com/python-pillow/Pillow
advisories.mageia.org/MGASA-2016-0066.html
bugs.mageia.org/show_bug.cgi?id=17671
openwall.com/lists/oss-security/2016/02/02/5
github.com/python-pillow/Pillow/blob/777ef4f523679a9ea0f3573efc224bf821b6abe7/docs/releasenotes/3.1.1.rst
lists.fedoraproject.org/pipermail/package-announce/2016-February/176983.html
suse.com/support/update/announcement/2016/suse-su-20160924-1
bugzilla.suse.com/965579
bugzilla.suse.com/965582
suse.com/security/cve/CVE-2016-0740
suse.com/security/cve/CVE-2016-0775
suse.com/support/update/announcement/2016/suse-su-20160935-1
suse.com/support/update/announcement/2016/suse-su-20161355-1
suse.com/support/update/announcement/2016/suse-su-20161569-1
ubuntu.com/security/CVE-2016-0740
cve.org/CVERecord?id=CVE-2016-0740
ubuntu.com/security/notices/USN-3090-1
ubuntu.com/security/CVE-2014-3589
ubuntu.com/security/CVE-2014-9601
ubuntu.com/security/CVE-2016-0775
ubuntu.com/security/CVE-2016-2533
suse.com/security/cve/CVE-2014-3589
suse.com/security/cve/CVE-2014-3598
suse.com/security/cve/CVE-2016-3076
suse.com/security/cve/CVE-2020-15999
suse.com/security/cve/CVE-2020-35653
suse.com/security/cve/CVE-2020-35654
suse.com/security/cve/CVE-2020-35655
suse.com/security/cve/CVE-2021-23437
suse.com/security/cve/CVE-2021-25289
suse.com/security/cve/CVE-2021-25290
suse.com/security/cve/CVE-2021-25291
suse.com/security/cve/CVE-2021-25292
suse.com/security/cve/CVE-2021-25293
suse.com/security/cve/CVE-2021-27921
suse.com/security/cve/CVE-2021-34552
suse.com/security/cve/CVE-2024-28219
suse.com/security/cve/CVE-2023-44271
suse.com/security/cve/CVE-2023-50447
suse.com/security/cve/CVE-2026-42311
suse.com/security/cve/CVE-2026-4775
suse.com/security/cve/CVE-2026-54059
suse.com/security/cve/CVE-2026-55379