Every CVE Search/ Get API key

CVE-2018-8905

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw...

8.8 HighFix available

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

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

Exploit likelihood

3.08%Up 1.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 8.8

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Record
CVE-2018-8905
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Record
CVE-2018-8905
Updated
2026-11-02
EUVDEUVD-2018-20513 No score

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Record
EUVD-2018-20513
Updated
2026-11-03
GitHub AdvisoriesGHSA-hjgx-w465-2m2j 8.8

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw...

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Record
GHSA-hjgx-w465-2m2j
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-787
Updated
2026-11-02
OSVALPINE-CVE-2018-8905 8.8

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Record
ALPINE-CVE-2018-8905
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBELL-CVE-2018-8905 8.8

CVE-2018-8905 does not affect BellSoft software

Record
BELL-CVE-2018-8905
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 10 moreShow less
OSV 8.8

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Record
CVE-2018-8905
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-8905 8.8

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Record
DEBIAN-CVE-2018-8905
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2019:2053 5.3

Red Hat Security Advisory: libtiff security update

Record
RHSA-2019:2053
CVSS 3.0
5.3 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVUBUNTU-CVE-2018-8905 8.8

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

Record
UBUNTU-CVE-2018-8905
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 3.0
8.8 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2018-0246 No score

Updated libtiff packages fix security vulnerabilities

The TIFFWriteDirectorySec() function in tif_dirwrite.c in LibTIFF through 4.0.9 allows remote attackers to cause a denial of service (assertion failure and application crash) via a crafted file, a different vulnerability than CVE-2017-13726. (CVE-2018-10963)

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps. (CVE-2018-8905)

Record
MGASA-2018-0246
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:1826-1 No score

Security update for tiff

This update for tiff fixes the following issues:

These security issues were fixed:

  • CVE-2017-18013: There was a Null-Pointer Dereference in the tif_print.c TIFFPrintDirectory function, as demonstrated by a tiffinfo crash. (bsc#1074317)
  • CVE-2018-10963: The TIFFWriteDirectorySec() function in tif_dirwrite.c allowed remote attackers to cause a denial of service (assertion failure and application crash) via a crafted file, a different vulnerability than CVE-2017-13726. (bsc#1092949)
  • 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-2018-8905: Prevent heap-based buffer overflow in the function LZWDecodeCompat via a crafted TIFF file (bsc#1086408)
  • 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:1826-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
OSVSUSE-SU-2018:1889-1 No score

Security update for tiff

This update for tiff fixes the following security issues:

These security issues were fixed:

  • CVE-2017-18013: Fixed a NULL pointer dereference in the tif_print.cTIFFPrintDirectory function that could have lead to denial of service (bsc#1074317).
  • CVE-2018-10963: Fixed an assertion failure in the TIFFWriteDirectorySec() function in tif_dirwrite.c, which allowed remote attackers to cause a denial of service via a crafted file (bsc#1092949).
  • 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-2018-8905: Prevent heap-based buffer overflow in the function LZWDecodeCompat via a crafted TIFF file (bsc#1086408).
Record
SUSE-SU-2018:1889-1
Updated
2026-11-02
OSVUSN-3864-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-3864-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
tiff
Alpine:v3.10
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.11
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.12
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.13
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.14
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.15
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.16
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.17
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.18
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.19
before 4.0.9-r5
4.0.9-r5
Show 56 moreShow less
Affected packages
PackageAffectedFixed
tiff
Alpine:v3.20
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.21
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.22
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.23
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.24
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.4
before 4.0.9-r4
4.0.9-r4
tiff
Alpine:v3.5
before 4.0.9-r4
4.0.9-r4
tiff
Alpine:v3.6
before 4.0.9-r4
4.0.9-r4
tiff
Alpine:v3.7
before 4.0.9-r4
4.0.9-r4
tiff
Alpine:v3.8
before 4.0.9-r5
4.0.9-r5
tiff
Alpine:v3.9
before 4.0.9-r5
4.0.9-r5
tiff
Debian:12
before 4.0.9-6
4.0.9-6
tiff
Debian:13
before 4.0.9-6
4.0.9-6
tiff
Debian:14
before 4.0.9-6
4.0.9-6
tiff
Debian:7
before 4.0.2-6+deb7u20, plus listed versions
4.0.2-64.0.2-6+deb7u14.0.2-6+deb7u104.0.2-6+deb7u114.0.2-6+deb7u12
Show 15 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+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+deb7u20
tiff3
Debian:7
before 3.9.6-11+deb7u11, plus listed versions
3.9.6-113.9.6-11+deb7u13.9.6-11+deb7u103.9.6-11+deb7u23.9.6-11+deb7u3
Show 6 moreShow less
3.9.6-11+deb7u43.9.6-11+deb7u53.9.6-11+deb7u63.9.6-11+deb7u73.9.6-11+deb7u83.9.6-11+deb7u9
3.9.6-11+deb7u11
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.5.mga5
4.0.9-1.5.mga5
libtiff
Mageia:6
From an advisory covering 2 CVEs
before 4.0.9-1.5.mga6
4.0.9-1.5.mga6
libtiff
Red Hat:enterprise_linux:7::client
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-debuginfo
Red Hat:enterprise_linux:7::client
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-devel
Red Hat:enterprise_linux:7::client
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-static
Red Hat:enterprise_linux:7::client
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-tools
Red Hat:enterprise_linux:7::client
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff
Red Hat:enterprise_linux:7::computenode
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-debuginfo
Red Hat:enterprise_linux:7::computenode
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-devel
Red Hat:enterprise_linux:7::computenode
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-static
Red Hat:enterprise_linux:7::computenode
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-tools
Red Hat:enterprise_linux:7::computenode
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff
Red Hat:enterprise_linux:7::server
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-debuginfo
Red Hat:enterprise_linux:7::server
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-devel
Red Hat:enterprise_linux:7::server
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-static
Red Hat:enterprise_linux:7::server
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-tools
Red Hat:enterprise_linux:7::server
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff
Red Hat:enterprise_linux:7::workstation
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-debuginfo
Red Hat:enterprise_linux:7::workstation
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-devel
Red Hat:enterprise_linux:7::workstation
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-static
Red Hat:enterprise_linux:7::workstation
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
libtiff-tools
Red Hat:enterprise_linux:7::workstation
From an advisory covering 10 CVEs
before 0:4.0.3-32.el7
0:4.0.3-32.el7
tiff
SUSE:Linux Enterprise Desktop 12 SP3
From an advisory covering 8 CVEs
before 4.0.9-44.15.2
4.0.9-44.15.2
tiff
SUSE:Linux Enterprise Software Development Kit 12 SP3
From an advisory covering 8 CVEs
before 4.0.9-44.15.2
4.0.9-44.15.2
tiff
SUSE:Linux Enterprise Server 12 SP3
From an advisory covering 8 CVEs
before 4.0.9-44.15.2
4.0.9-44.15.2
tiff
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
From an advisory covering 8 CVEs
before 4.0.9-44.15.2
4.0.9-44.15.2
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
SUSE:Linux Enterprise Module for Basesystem 15
From an advisory covering 5 CVEs
before 4.0.9-5.9.1
4.0.9-5.9.1
tiff
SUSE:Linux Enterprise Module for Desktop Applications 15
From an advisory covering 5 CVEs
before 4.0.9-5.9.1
4.0.9-5.9.1
tiff
Ubuntu:14.04:LTS
before 4.0.3-7ubuntu0.10, plus listed versions
4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7
Show 8 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.84.0.3-7ubuntu0.9
4.0.3-7ubuntu0.10
tiff
Ubuntu:16.04:LTS
before 4.0.6-1ubuntu0.5, 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.34.0.6-1ubuntu0.4
4.0.6-1ubuntu0.5
tiff
Ubuntu:18.04:LTS
before 4.0.9-5ubuntu0.1, plus listed versions
4.0.8-54.0.8-64.0.9-14.0.9-24.0.9-34.0.9-44.0.9-4ubuntu14.0.9-5
4.0.9-5ubuntu0.1
tiff
Ubuntu:14.04:LTS
From an advisory covering 7 CVEs
before 4.0.3-7ubuntu0.10, plus listed versions
4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7
Show 8 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.84.0.3-7ubuntu0.9
4.0.3-7ubuntu0.10
tiff
Ubuntu:16.04:LTS
From an advisory covering 7 CVEs
before 4.0.6-1ubuntu0.5, 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.34.0.6-1ubuntu0.4
4.0.6-1ubuntu0.5
tiff
Ubuntu:18.04:LTS
From an advisory covering 7 CVEs
before 4.0.9-5ubuntu0.1, plus listed versions
4.0.8-54.0.8-64.0.9-14.0.9-24.0.9-34.0.9-44.0.9-4ubuntu14.0.9-5
4.0.9-5ubuntu0.1
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-8905 is a high vulnerability (CVSS 8.8) in Libtiff, published March 22, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.08%, the 87th percentile. Fixed in tiff 4.0.9-r5.

References

Show 132 moreShow less
MoveEnter Open