Every CVE Search/ Get API key

CVE-2018-5784

In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function...

6.5 MediumFix available

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

2.96%Up 0.4 points since Apr 14, 2021
90%50%10%1%

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 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-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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 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-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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
tiff
Alpine:v3.10
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.11
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.12
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.13
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.14
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.15
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.16
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.17
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.18
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.19
before 4.0.9-r2
4.0.9-r2
Show 30 moreShow less
Affected packages
PackageAffectedFixed
tiff
Alpine:v3.20
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.21
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.22
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.23
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.24
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.4
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.5
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.6
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.7
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.8
before 4.0.9-r2
4.0.9-r2
tiff
Alpine:v3.9
before 4.0.9-r2
4.0.9-r2
tiff
Debian:12
before 4.0.9-4
4.0.9-4
tiff
Debian:13
before 4.0.9-4
4.0.9-4
tiff
Debian:14
before 4.0.9-4
4.0.9-4
tiff
Debian: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 less
4.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
tiff
Debian: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
tiff
Debian: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
libtiff
Mageia:5
From an advisory covering 2 CVEs
before 4.0.9-1.2.mga5
4.0.9-1.2.mga5
libtiff
Mageia:6
From an advisory covering 2 CVEs
before 4.0.9-1.2.mga6
4.0.9-1.2.mga6
tiff
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 3 CVEs
before 4.0.9-44.10.1
4.0.9-44.10.1
tiff
SUSE: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
tiff
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 3 CVEs
before 4.0.9-44.10.1
4.0.9-44.10.1
tiff
SUSE: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
tiff
Ubuntu: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 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.7
4.0.3-7ubuntu0.8
tiff
Ubuntu: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
tiff
Ubuntu: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 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.7
4.0.3-7ubuntu0.8
tiff
Ubuntu: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
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-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

Show 100 moreShow less
MoveEnter Open