CVE-2016-5318
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.
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
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 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
tiffDebian:12 |
before 4.0.6-3 | 4.0.6-3 |
tiffDebian:13 |
before 4.0.6-3 | 4.0.6-3 |
tiffDebian:14 |
before 4.0.6-3 | 4.0.6-3 |
tiff3Debian: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 |
tiffDebian: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 |
tiffSUSE:Linux Enterprise Desktop 12 SP2 From an advisory covering 5 CVEs |
before 4.0.9-44.7.1 | 4.0.9-44.7.1 |
tiffSUSE:Linux Enterprise Desktop 12 SP3 From an advisory covering 5 CVEs |
before 4.0.9-44.7.1 | 4.0.9-44.7.1 |
tiffSUSE: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 |
tiffSUSE: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 |
tiffSUSE: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
| Package | Affected | Fixed |
|---|---|---|
tiffSUSE:Linux Enterprise Server 12 SP2 From an advisory covering 5 CVEs |
before 4.0.9-44.7.1 | 4.0.9-44.7.1 |
tiffSUSE: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 |
tiffSUSE:Linux Enterprise Server 12 SP3 From an advisory covering 5 CVEs |
before 4.0.9-44.7.1 | 4.0.9-44.7.1 |
tiffSUSE: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 |
tiffSUSE: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 |
tiffSUSE: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 |
tiffSUSE: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 |
tiffSUSE: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 |
tiffSUSE: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 |
tiffSUSE: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 |
tiffUbuntu: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 less4.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 |
tiffUbuntu: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 |
tiffUbuntu: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 less4.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 |
tiffUbuntu: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 |
tiffopenSUSE:Tumbleweed From an advisory covering 48 CVEs |
before 4.3.0-1.3 | 4.3.0-1.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE 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
usn.ubuntu.com/3606-1
security.gentoo.org/glsa/201701-16
securityfocus.com/bid/88604
openwall.com/lists/oss-security/2016/04/27/6
openwall.com/lists/oss-security/2016/06/07/1
nvd.nist.gov/vuln/detail/CVE-2016-5318
Show 104 moreShow less
github.com/advisories/GHSA-hqx5-9h4v-xwm4
security-tracker.debian.org/tracker/CVE-2016-5318
suse.com/support/update/announcement/2018/suse-su-20180073-1
bugzilla.suse.com/1017690
bugzilla.suse.com/1069213
bugzilla.suse.com/960341
bugzilla.suse.com/969783
bugzilla.suse.com/983436
suse.com/security/cve/CVE-2014-8128
suse.com/security/cve/CVE-2015-7554
suse.com/security/cve/CVE-2016-10095
suse.com/security/cve/CVE-2016-5318
suse.com/security/cve/CVE-2017-16232
suse.com/support/update/announcement/2018/suse-su-20181179-1
bugzilla.suse.com/1007280
bugzilla.suse.com/1011107
bugzilla.suse.com/1011845
bugzilla.suse.com/1017688
bugzilla.suse.com/1017691
bugzilla.suse.com/1017692
bugzilla.suse.com/1031255
bugzilla.suse.com/1046077
bugzilla.suse.com/1048937
bugzilla.suse.com/1074318
suse.com/security/cve/CVE-2016-10268
suse.com/security/cve/CVE-2016-3945
suse.com/security/cve/CVE-2016-5652
suse.com/security/cve/CVE-2016-9453
suse.com/security/cve/CVE-2016-9536
suse.com/security/cve/CVE-2017-11335
suse.com/security/cve/CVE-2017-17973
suse.com/security/cve/CVE-2017-9935
suse.com/support/update/announcement/2018/suse-su-20181835-1
bugzilla.suse.com/1007276
bugzilla.suse.com/1011839
bugzilla.suse.com/1011846
bugzilla.suse.com/1017689
bugzilla.suse.com/1019611
bugzilla.suse.com/1031263
bugzilla.suse.com/1082332
bugzilla.suse.com/1082825
bugzilla.suse.com/1086408
bugzilla.suse.com/974621
suse.com/security/cve/CVE-2016-10266
suse.com/security/cve/CVE-2016-3632
suse.com/security/cve/CVE-2016-8331
suse.com/security/cve/CVE-2016-9535
suse.com/security/cve/CVE-2016-9540
suse.com/security/cve/CVE-2017-11613
suse.com/security/cve/CVE-2017-5225
suse.com/security/cve/CVE-2018-7456
suse.com/security/cve/CVE-2018-8905
ubuntu.com/security/CVE-2016-5318
ubuntu.com/security/notices/USN-3606-1
cve.org/CVERecord?id=CVE-2016-5318
ubuntu.com/security/CVE-2016-3186
ubuntu.com/security/CVE-2016-5102
ubuntu.com/security/CVE-2017-5563
ubuntu.com/security/CVE-2017-9117
ubuntu.com/security/CVE-2017-9147
ubuntu.com/security/CVE-2017-9935
ubuntu.com/security/CVE-2017-11613
ubuntu.com/security/CVE-2017-12944
ubuntu.com/security/CVE-2017-17095
ubuntu.com/security/CVE-2017-18013
ubuntu.com/security/CVE-2018-5784
suse.com/security/cve/CVE-2006-0405
suse.com/security/cve/CVE-2006-2656
suse.com/security/cve/CVE-2008-1586
suse.com/security/cve/CVE-2008-2327
suse.com/security/cve/CVE-2016-10267
suse.com/security/cve/CVE-2016-10269
suse.com/security/cve/CVE-2016-10270
suse.com/security/cve/CVE-2016-10271
suse.com/security/cve/CVE-2016-10272
suse.com/security/cve/CVE-2016-10371
suse.com/security/cve/CVE-2016-9538
suse.com/security/cve/CVE-2017-18013
suse.com/security/cve/CVE-2017-7592
suse.com/security/cve/CVE-2017-7593
suse.com/security/cve/CVE-2017-7594
suse.com/security/cve/CVE-2017-7595
suse.com/security/cve/CVE-2017-7596
suse.com/security/cve/CVE-2017-7598
suse.com/security/cve/CVE-2017-7599
suse.com/security/cve/CVE-2017-7601
suse.com/security/cve/CVE-2017-7602
suse.com/security/cve/CVE-2017-9403
suse.com/security/cve/CVE-2017-9404
suse.com/security/cve/CVE-2017-9936
suse.com/security/cve/CVE-2018-10779
suse.com/security/cve/CVE-2018-10963
suse.com/security/cve/CVE-2018-12900
suse.com/security/cve/CVE-2018-16335
suse.com/security/cve/CVE-2018-17000
suse.com/security/cve/CVE-2018-17100
suse.com/security/cve/CVE-2018-17101
suse.com/security/cve/CVE-2018-17795
suse.com/security/cve/CVE-2018-18557
suse.com/security/cve/CVE-2018-18661
suse.com/security/cve/CVE-2018-19210
suse.com/security/cve/CVE-2018-5784
suse.com/security/cve/CVE-2019-6128
suse.com/security/cve/CVE-2019-7663