Every CVE Search/ Get API key

CVE-2016-0740

Pillow Buffer overflow in ImagingLibTiffDecode

6.5 MediumFix available

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

2.66%Up 1.4 points since Feb 4, 2022
90%50%10%1%

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 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
pillow
PyPI
before 3.1.1
3.1.1
pillow
Debian:12
before 3.1.1-1
3.1.1-1
pillow
Debian:13
before 3.1.1-1
3.1.1-1
pillow
Debian:14
before 3.1.1-1
3.1.1-1
pillow
Debian:8
before 2.6.1-2+deb8u2, plus listed versions
2.6.1-22.6.1-2+deb8u1
2.6.1-2+deb8u2
pillow
PyPI
before 3.1.1, plus listed versions
1.01.11.21.31.4
Show 36 moreShow less
1.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-pillow
Mageia:5
before 2.6.2-2.5.mga5
2.6.2-2.5.mga5
python-Pillow
SUSE:OpenStack Cloud 5
before 2.7.0-9.1
2.7.0-9.1
python-Pillow
SUSE:OpenStack Cloud 6
before 2.7.0-3.1
2.7.0-3.1
python-Pillow
SUSE:Enterprise Storage 2.1
before 2.7.0-3.1
2.7.0-3.1
Show 8 moreShow less
Affected packages
PackageAffectedFixed
python-Pillow
SUSE:Enterprise Storage 1.0
before 2.7.0-7.1
2.7.0-7.1
python-Pillow
SUSE:Enterprise Storage 2
before 2.7.0-3.2
2.7.0-3.2
pillow
Ubuntu: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 less
2.2.1-3ubuntu62.3.0-1ubuntu12.3.0-1ubuntu22.3.0-1ubuntu3
2.3.0-1ubuntu3.2
python-Pillow
openSUSE:Tumbleweed
before 3.4.2-1.1
3.4.2-1.1
python-Pillow
openSUSE:Tumbleweed
before 3.1.1-4.1
3.1.1-4.1
python-Pillow
openSUSE:Tumbleweed
before 8.3.2-1.2
8.3.2-1.2
python-Pillow
openSUSE:Tumbleweed
before 10.3.0-1.1
10.3.0-1.1
python-Pillow
openSUSE:Tumbleweed
before 12.3.0-1.1
12.3.0-1.1

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, GitHub Advisories, NVD, OSV

References

Show 45 moreShow less
MoveEnter Open