CVE-2018-5784
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function...
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
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
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
- Record
CVE-2018-5784- 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-400
- Updated
- 2026-11-02
CVE List No score
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
- Record
CVE-2018-5784- Updated
- 2026-11-02
EUVDEUVD-2018-17551 No score
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
- Record
EUVD-2018-17551- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-phm4-fjr6-hf5x
6.5
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function...
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
- Record
GHSA-phm4-fjr6-hf5x- 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-400
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-5784
6.5
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
- Record
ALPINE-CVE-2018-5784- 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
OSVBELL-CVE-2018-5784
6.5
CVE-2018-5784 does not affect BellSoft software
- Record
BELL-CVE-2018-5784- 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 8 moreShow less
OSV
6.5
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
- Record
CVE-2018-5784- 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-2018-5784
6.5
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
- Record
DEBIAN-CVE-2018-5784- 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
OSVUBUNTU-CVE-2018-5784
6.5
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.
- Record
UBUNTU-CVE-2018-5784- 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
OSVMGASA-2018-0180 No score
Updated libtiff packages fix security vulnerabilities
In LibTIFF 4.0.8, there is a denial of service vulnerability in the TIFFOpen function. A crafted input will lead to a denial of service attack. 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 we set the value of td_imagelength close to the amount of system memory, it will hang the system or trigger the OOM killer. (CVE-2017-11613)
In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries. (CVE-2018-5784)
- Record
MGASA-2018-0180- 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:1180-1 No score
Security update for tiff
This update for tiff fixes the following issues:
- CVE-2017-9935: 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-2018-5784: There is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries (bsc#1081690)
- Record
SUSE-SU-2018:1180-1- Updated
- 2026-11-02
OSVUSN-3602-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-3602-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 |
|---|---|---|
tiffAlpine:v3.10 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.11 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.12 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.13 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.14 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.15 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.16 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.17 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.18 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.19 |
before 4.0.9-r2 | 4.0.9-r2 |
Show 30 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tiffAlpine:v3.20 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.21 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.22 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.23 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.24 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.4 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.5 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.6 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.7 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.8 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffAlpine:v3.9 |
before 4.0.9-r2 | 4.0.9-r2 |
tiffDebian:12 |
before 4.0.9-4 | 4.0.9-4 |
tiffDebian:13 |
before 4.0.9-4 | 4.0.9-4 |
tiffDebian:14 |
before 4.0.9-4 | 4.0.9-4 |
tiffDebian:7 From an advisory covering 2 CVEs |
before 4.0.2-6+deb7u21, plus listed versions 4.0.2-64.0.2-6+deb7u14.0.2-6+deb7u104.0.2-6+deb7u114.0.2-6+deb7u12 Show 16 moreShow less4.0.2-6+deb7u134.0.2-6+deb7u144.0.2-6+deb7u154.0.2-6+deb7u164.0.2-6+deb7u174.0.2-6+deb7u184.0.2-6+deb7u194.0.2-6+deb7u24.0.2-6+deb7u204.0.2-6+deb7u34.0.2-6+deb7u44.0.2-6+deb7u54.0.2-6+deb7u64.0.2-6+deb7u74.0.2-6+deb7u84.0.2-6+deb7u9 |
4.0.2-6+deb7u21 |
tiffDebian:8 From an advisory covering 5 CVEs |
before 4.0.3-12.3+deb8u6, plus listed versions 4.0.3-12.34.0.3-12.3+deb8u14.0.3-12.3+deb8u24.0.3-12.3+deb8u34.0.3-12.3+deb8u44.0.3-12.3+deb8u5 |
4.0.3-12.3+deb8u6 |
tiffDebian:9 From an advisory covering 10 CVEs |
before 4.0.8-2+deb9u4, plus listed versions 4.0.8-24.0.8-2+deb9u14.0.8-2+deb9u24.0.8-2+deb9u3 |
4.0.8-2+deb9u4 |
libtiffMageia:5 From an advisory covering 2 CVEs |
before 4.0.9-1.2.mga5 | 4.0.9-1.2.mga5 |
libtiffMageia:6 From an advisory covering 2 CVEs |
before 4.0.9-1.2.mga6 | 4.0.9-1.2.mga6 |
tiffSUSE:Linux Enterprise Desktop 12 SP3 From an advisory covering 3 CVEs |
before 4.0.9-44.10.1 | 4.0.9-44.10.1 |
tiffSUSE:Linux Enterprise Software Development Kit 12 SP3 From an advisory covering 3 CVEs |
before 4.0.9-44.10.1 | 4.0.9-44.10.1 |
tiffSUSE:Linux Enterprise Server 12 SP3 From an advisory covering 3 CVEs |
before 4.0.9-44.10.1 | 4.0.9-44.10.1 |
tiffSUSE:Linux Enterprise Server for SAP Applications 12 SP3 From an advisory covering 3 CVEs |
before 4.0.9-44.10.1 | 4.0.9-44.10.1 |
tiffUbuntu:14.04:LTS |
before 4.0.3-7ubuntu0.8, plus listed versions 4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7 Show 6 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.7 |
4.0.3-7ubuntu0.8 |
tiffUbuntu:16.04:LTS |
before 4.0.6-1ubuntu0.3, plus listed versions 4.0.3-12.3ubuntu24.0.5-14.0.6-14.0.6-1ubuntu0.14.0.6-1ubuntu0.2 |
4.0.6-1ubuntu0.3 |
tiffUbuntu:14.04:LTS From an advisory covering 27 CVEs |
before 4.0.3-7ubuntu0.8, plus listed versions 4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7 Show 6 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.7 |
4.0.3-7ubuntu0.8 |
tiffUbuntu:16.04:LTS From an advisory covering 27 CVEs |
before 4.0.6-1ubuntu0.3, plus listed versions 4.0.3-12.3ubuntu24.0.5-14.0.6-14.0.6-1ubuntu0.14.0.6-1ubuntu0.2 |
4.0.6-1ubuntu0.3 |
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-2018-5784 is a medium vulnerability (CVSS 6.5) in Libtiff, published January 19, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.96%, the 87th percentile. Fixed in tiff 4.0.9-r2.
References
usn.ubuntu.com/3606-1
usn.ubuntu.com/3602-1
lists.debian.org/debian-lts-announce/2018/05/msg00022.html
debian.org/security/2018/dsa-4349
bugzilla.maptools.org/show_bug.cgi?id=2772
lists.debian.org/debian-lts-announce/2018/07/msg00002.html
Show 100 moreShow less
gitlab.com/libtiff/libtiff/commit/473851d211cf8805a161820337ca74cc9615d6ef
nvd.nist.gov/vuln/detail/CVE-2018-5784
github.com/advisories/GHSA-phm4-fjr6-hf5x
security.alpinelinux.org/vuln/CVE-2018-5784
docs.bell-sw.com/security/cves/CVE-2018-5784
security-tracker.debian.org/tracker/CVE-2018-5784
advisories.mageia.org/MGASA-2018-0180.html
bugs.mageia.org/show_bug.cgi?id=22799
suse.com/support/update/announcement/2018/suse-su-20181180-1
bugzilla.suse.com/1046077
bugzilla.suse.com/1074318
bugzilla.suse.com/1081690
suse.com/security/cve/CVE-2017-17973
suse.com/security/cve/CVE-2017-9935
suse.com/security/cve/CVE-2018-5784
ubuntu.com/security/CVE-2018-5784
ubuntu.com/security/notices/USN-3602-1
ubuntu.com/security/notices/USN-3606-1
cve.org/CVERecord?id=CVE-2018-5784
ubuntu.com/security/CVE-2016-10266
ubuntu.com/security/CVE-2016-10267
ubuntu.com/security/CVE-2016-10268
ubuntu.com/security/CVE-2016-10269
ubuntu.com/security/CVE-2016-10371
ubuntu.com/security/CVE-2017-7592
ubuntu.com/security/CVE-2017-7593
ubuntu.com/security/CVE-2017-7594
ubuntu.com/security/CVE-2017-7595
ubuntu.com/security/CVE-2017-7596
ubuntu.com/security/CVE-2017-7597
ubuntu.com/security/CVE-2017-7598
ubuntu.com/security/CVE-2017-7599
ubuntu.com/security/CVE-2017-7600
ubuntu.com/security/CVE-2017-7601
ubuntu.com/security/CVE-2017-7602
ubuntu.com/security/CVE-2017-9403
ubuntu.com/security/CVE-2017-9404
ubuntu.com/security/CVE-2017-9815
ubuntu.com/security/CVE-2017-9936
ubuntu.com/security/CVE-2017-10688
ubuntu.com/security/CVE-2017-11335
ubuntu.com/security/CVE-2017-12944
ubuntu.com/security/CVE-2017-13726
ubuntu.com/security/CVE-2017-13727
ubuntu.com/security/CVE-2017-18013
ubuntu.com/security/CVE-2016-3186
ubuntu.com/security/CVE-2016-5102
ubuntu.com/security/CVE-2016-5318
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-17095
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-10095
suse.com/security/cve/CVE-2016-10266
suse.com/security/cve/CVE-2016-10267
suse.com/security/cve/CVE-2016-10268
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-5318
suse.com/security/cve/CVE-2016-9538
suse.com/security/cve/CVE-2017-11613
suse.com/security/cve/CVE-2017-16232
suse.com/security/cve/CVE-2017-18013
suse.com/security/cve/CVE-2017-5225
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-7456
suse.com/security/cve/CVE-2018-8905
suse.com/security/cve/CVE-2019-6128
suse.com/security/cve/CVE-2019-7663