Every CVE Search/ Get API key

CVE-2016-5318

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows...

6.5 MediumFix available

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff.

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
None
Availability
High

Exploit likelihood

4.82%Up 3.6 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 6.5

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff.

Record
CVE-2016-5318
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-119
Updated
2026-11-02
CVE List No score

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff.

Record
CVE-2016-5318
Updated
2026-11-02
EUVDEUVD-2016-6269 No score

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff.

Record
EUVD-2016-6269
Updated
2026-11-03
GitHub AdvisoriesGHSA-hqx5-9h4v-xwm4 6.5

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows...

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff.

Record
GHSA-hqx5-9h4v-xwm4
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-119
Updated
2026-11-02
OSV 6.5

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff.

Record
CVE-2016-5318
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2016-5318 6.5

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff.

Record
DEBIAN-CVE-2016-5318
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 6 moreShow less
OSVUBUNTU-CVE-2016-5318 6.5

Stack-based buffer overflow in the _TIFFVGetField function in libtiff 4.0.6 and earlier allows remote attackers to crash the application via a crafted tiff.

Record
UBUNTU-CVE-2016-5318
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVopenSUSE-SU-2024:11461-1 No score

libtiff-devel-32bit-4.3.0-1.3 on GA media

These are all security issues fixed in the libtiff-devel-32bit-4.3.0-1.3 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11461-1
Updated
2026-11-02
OSVSUSE-SU-2018:0073-1 No score

Security update for tiff

This update for tiff to version 4.0.9 fixes the following issues:

Security issues fixed:

  • CVE-2014-8128: Fix out-of-bounds read with malformed TIFF image in multiple tools (bsc#969783).
  • CVE-2015-7554: Fix invalid write in tiffsplit / _TIFFVGetField (bsc#960341).
  • CVE-2016-10095: Fix stack-based buffer overflow in _TIFFVGetField (tif_dir.c) (bsc#1017690).
  • CVE-2016-5318: Fix stackoverflow in thumbnail (bsc#983436).
  • CVE-2017-16232: Fix memory-based DoS in tiff2bw (bsc#1069213).
Record
SUSE-SU-2018:0073-1
Updated
2026-11-02
OSVSUSE-SU-2018:1179-1 No score

Security update for tiff

This update for tiff fixes the following issues:

  • CVE-2016-9453: The t2p_readwrite_pdf_image_tile function allowed remote attackers to cause a denial of service (out-of-bounds write and crash) or possibly execute arbitrary code via a JPEG file with a TIFFTAG_JPEGTABLES of length one (bsc#1011107).
  • CVE-2016-5652: An exploitable heap-based buffer overflow existed in the handling of TIFF images in the TIFF2PDF tool. A crafted TIFF document can lead to a heap-based buffer overflow resulting in remote code execution. Vulnerability can be triggered via a saved TIFF file delivered by other means (bsc#1007280).
  • CVE-2017-11335: There is a heap based buffer overflow in tools/tiff2pdf.c via a PlanarConfig=Contig image, which caused a more than one hundred bytes out-of-bounds write (related to the ZIPDecode function in tif_zip.c). A crafted input may lead to a remote denial of service attack or an arbitrary code execution attack (bsc#1048937).
  • CVE-2016-9536: tools/tiff2pdf.c had an out-of-bounds write vulnerabilities in heap allocated buffers in t2p_process_jpeg_strip(). Reported as MSVR 35098, aka 't2p_process_jpeg_strip heap-buffer-overflow.' (bsc#1011845)
  • CVE-2017-9935: In LibTIFF, there was a heap-based buffer overflow in the t2p_write_pdf function in tools/tiff2pdf.c. This heap overflow could lead to different damages. For example, a crafted TIFF document can lead to an out-of-bounds read in TIFFCleanup, an invalid free in TIFFClose or t2p_free, memory corruption in t2p_readwrite_pdf_image, or a double free in t2p_free. Given these possibilities, it probably could cause arbitrary code execution (bsc#1046077).
  • CVE-2017-17973: There is a heap-based use-after-free in the t2p_writeproc function in tiff2pdf.c. (bsc#1074318)
  • CVE-2015-7554: The _TIFFVGetField function in tif_dir.c allowed attackers to cause a denial of service (invalid memory write and crash) or possibly have unspecified other impact via crafted field data in an extension tag in a TIFF image (bsc#960341).
  • CVE-2016-5318: Stack-based buffer overflow in the _TIFFVGetField function allowed remote attackers to crash the application via a crafted tiff (bsc#983436).
  • CVE-2016-10095: Stack-based buffer overflow in the _TIFFVGetField function in tif_dir.c allowed remote attackers to cause a denial of service (crash) via a crafted TIFF file (bsc#1017690,).
  • CVE-2016-10268: tools/tiffcp.c allowed remote attackers to cause a denial of service (integer underflow and heap-based buffer under-read) or possibly have unspecified other impact via a crafted TIFF image, related to 'READ of size 78490' and libtiff/tif_unix.c:115:23 (bsc#1031255)
  • An overlapping of memcpy parameters was fixed which could lead to content corruption (bsc#1017691).
  • Fixed an invalid memory read which could lead to a crash (bsc#1017692).
  • Fixed a NULL pointer dereference in TIFFReadRawData (tiffinfo.c) that could crash the decoder (bsc#1017688).
Record
SUSE-SU-2018:1179-1
Updated
2026-11-02
OSVSUSE-SU-2018:1835-1 No score

Security update for tiff

This update for tiff fixes the following security issues:

  • CVE-2017-5225: Prevent heap buffer overflow in the tools/tiffcp that could have caused DoS or code execution via a crafted BitsPerSample value (bsc#1019611)
  • CVE-2018-7456: Prevent a NULL Pointer dereference in the function TIFFPrintDirectory when using the tiffinfo tool to print crafted TIFF information, a different vulnerability than CVE-2017-18013 (bsc#1082825)
  • CVE-2017-11613: Prevent denial of service in the TIFFOpen function. During the TIFFOpen process, td_imagelength is not checked. The value of td_imagelength can be directly controlled by an input file. In the ChopUpSingleUncompressedStrip function, the _TIFFCheckMalloc function is called based on td_imagelength. If the value of td_imagelength is set close to the amount of system memory, it will hang the system or trigger the OOM killer (bsc#1082332)
  • CVE-2016-10266: Prevent remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted TIFF image, related to libtiff/tif_read.c:351:22 (bsc#1031263)
  • CVE-2018-8905: Prevent heap-based buffer overflow in the function LZWDecodeCompat via a crafted TIFF file (bsc#1086408)
  • CVE-2016-9540: Prevent out-of-bounds write on tiled images with odd tile width versus image width (bsc#1011839).
  • CVE-2016-9535: tif_predict.h and tif_predict.c had assertions that could have lead to assertion failures in debug mode, or buffer overflows in release mode, when dealing with unusual tile size like YCbCr with subsampling (bsc#1011846).
  • CVE-2016-9535: tif_predict.h and tif_predict.c had assertions that could have lead to assertion failures in debug mode, or buffer overflows in release mode, when dealing with unusual tile size like YCbCr with subsampling (bsc#1011846).
  • Removed assert in readSeparateTilesIntoBuffer() function (bsc#1017689).
  • CVE-2016-10095: Prevent stack-based buffer overflow in the _TIFFVGetField function that allowed remote attackers to cause a denial of service (crash) via a crafted TIFF file (bsc#1017690).
  • CVE-2016-8331: Prevent remote code execution because of incorrect handling of TIFF images. A crafted TIFF document could have lead to a type confusion vulnerability resulting in remote code execution. This vulnerability could have been be triggered via a TIFF file delivered to the application using LibTIFF's tag extension functionality (bsc#1007276).
  • CVE-2016-3632: The _TIFFVGetField function allowed remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted TIFF image (bsc#974621).
Record
SUSE-SU-2018:1835-1
Updated
2026-11-02
OSVUSN-3606-1 No score

tiff vulnerabilities

It was discovered that LibTIFF incorrectly handled certain malformed images. If a user or automated system were tricked into opening a specially crafted image, a remote attacker could crash the application, leading to a denial of service, or possibly execute arbitrary code with user privileges.

Record
USN-3606-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
tiff
Debian:12
before 4.0.6-3
4.0.6-3
tiff
Debian:13
before 4.0.6-3
4.0.6-3
tiff
Debian:14
before 4.0.6-3
4.0.6-3
tiff3
Debian:7
From an advisory covering 2 CVEs
before 3.9.6-11+deb7u2, plus listed versions
3.9.6-113.9.6-11+deb7u1
3.9.6-11+deb7u2
tiff
Debian:7
From an advisory covering 17 CVEs
before 4.0.2-6+deb7u7, plus listed versions
4.0.2-64.0.2-6+deb7u14.0.2-6+deb7u24.0.2-6+deb7u34.0.2-6+deb7u44.0.2-6+deb7u54.0.2-6+deb7u6
4.0.2-6+deb7u7
tiff
SUSE:Linux Enterprise Desktop 12 SP2
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
tiff
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
tiff
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
tiff
SUSE:Linux Enterprise Software Development Kit 12 SP2
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
tiff
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
Show 15 moreShow less
Affected packages
PackageAffectedFixed
tiff
SUSE:Linux Enterprise Server 12 SP2
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
tiff
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 5 CVEs
before 4.0.9-44.7.1
4.0.9-44.7.1
tiff
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 11 CVEs
before 3.8.2-141.169.3.1
3.8.2-141.169.3.1
tiff
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 11 CVEs
before 3.8.2-141.169.3.1
3.8.2-141.169.3.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 11 CVEs
before 3.8.2-141.169.3.1
3.8.2-141.169.3.1
tiff
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 13 CVEs
before 3.8.2-141.169.9.1
3.8.2-141.169.9.1
tiff
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 13 CVEs
before 3.8.2-141.169.9.1
3.8.2-141.169.9.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 13 CVEs
before 3.8.2-141.169.9.1
3.8.2-141.169.9.1
tiff
Ubuntu:14.04:LTS
before 4.0.3-7ubuntu0.9, plus listed versions
4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7
Show 7 moreShow less
4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.44.0.3-7ubuntu0.64.0.3-7ubuntu0.74.0.3-7ubuntu0.8
4.0.3-7ubuntu0.9
tiff
Ubuntu:16.04:LTS
before 4.0.6-1ubuntu0.4, plus listed versions
4.0.3-12.3ubuntu24.0.5-14.0.6-14.0.6-1ubuntu0.14.0.6-1ubuntu0.24.0.6-1ubuntu0.3
4.0.6-1ubuntu0.4
tiff
Ubuntu:14.04:LTS
From an advisory covering 12 CVEs
before 4.0.3-7ubuntu0.9, plus listed versions
4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7
Show 7 moreShow less
4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.44.0.3-7ubuntu0.64.0.3-7ubuntu0.74.0.3-7ubuntu0.8
4.0.3-7ubuntu0.9
tiff
Ubuntu:16.04:LTS
From an advisory covering 12 CVEs
before 4.0.6-1ubuntu0.4, plus listed versions
4.0.3-12.3ubuntu24.0.5-14.0.6-14.0.6-1ubuntu0.14.0.6-1ubuntu0.24.0.6-1ubuntu0.3
4.0.6-1ubuntu0.4
tiff
openSUSE:Tumbleweed
From an advisory covering 48 CVEs
before 4.3.0-1.3
4.3.0-1.3

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-5318 is a medium vulnerability (CVSS 6.5) in Libtiff, published November 2, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.82%, the 92nd percentile. Fixed in tiff 4.0.6-3.

References

Show 104 moreShow less
MoveEnter Open