Every CVE Search/ Get API key

CVE-2015-8668

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in...

9.8 CriticalFix available

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

13.7%Up 9.2 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Record
CVE-2015-8668
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No score

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Record
CVE-2015-8668
Updated
2026-11-02
EUVDEUVD-2015-8545 No score

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Record
EUVD-2015-8545
Updated
2026-11-03
GitHub AdvisoriesGHSA-mgjx-j5p2-m66r 9.8

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in...

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Record
GHSA-mgjx-j5p2-m66r
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-119, CWE-787
Updated
2026-11-02
OSVBELL-CVE-2015-8668 9.8

CVE-2015-8668 does not affect BellSoft software

Record
BELL-CVE-2015-8668
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSV 9.8

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Record
CVE-2015-8668
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2015-8668 9.8

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Record
DEBIAN-CVE-2015-8668
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2016:1546 6.3

Red Hat Security Advisory: libtiff security update

Record
RHSA-2016:1546
CVSS 3.0
6.3 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVRHSA-2016:1547 6.3

Red Hat Security Advisory: libtiff security update

Record
RHSA-2016:1547
CVSS 3.0
6.3 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Updated
2026-11-02
OSVUBUNTU-CVE-2015-8668 9.8

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Record
UBUNTU-CVE-2015-8668
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2016-0349 No score

The updated packages fix libtiff security vulnerabilities

The _TIFFVGetField function in tif_dir.c in libtiff 4.0.6 allows 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. (CVE-2015-7554)

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image. (CVE-2015-8668)

Buffer overflow in the readextension function in gif2tiff.c in LibTIFF 4.0.6 allows remote attackers to cause a denial of service (application crash) via a crafted GIF file. (CVE-2016-3186) (the program gif2tiff has been obsoleted)

The fpAcc function in tif_predict.c in the tiff2rgba tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (divide-by-zero error) via a crafted TIFF image. (CVE-2016-3622)

The rgb2ycbcr tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (divide-by-zero) by setting the (1) v or (2) h parameter to 0. (CVE-2016-3623)

The _TIFFVGetField function in tif_dirinfo.c in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted TIFF image. (CVE-2016-3632)

Multiple integer overflows in the (1) cvt_by_strip and (2) cvt_by_tile functions in the tiff2rgba tool in LibTIFF 4.0.6 and earlier, when -b mode is enabled,allow remote attackers to cause a denial of service (crash) or execute arbitrary code via a crafted TIFF image, which triggers an out-of-bounds write. (CVE-2016-3945)

Heap-based buffer overflow in the horizontalDifference8 function in tif_pixarlog.c in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (crash) or execute arbitrary code via a crafted TIFF image to tiffcp. (CVE-2016-3990)

Heap-based buffer overflow in the loadImage function in the tiffcrop tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted TIFF image with zero tiles. (CVE-2016-3991)

PixarLogDecode() out-of-bound writes (CVE-2016-5314)

tif_dir.c: setByteArray() Read access violation (CVE-2016-5315)

tif_pixarlog.c: PixarLogCleanup() Segmentation fault (CVE-2016-5316)

crash occurs when generating a thumbnail for a crafted TIFF image (CVE-2016-5317)

rgb2ycbcr: command excution (CVE-2016-5320)

DumpModeDecode(): Ddos (CVE-2016-5321)

tiffcrop: extractContigSamplesBytes: out-of-bounds read (CVE-2016-5322)

tiffcrop _TIFFFax3fillruns(): divide by zero (CVE-2016-5323)

tiff: heap-based buffer overflow when using the PixarLog compression format (CVE-2016-5875)

tiff: information leak in libtiff/tif_read.c (CVE-2016-6223)

Record
MGASA-2016-0349
Updated
2026-11-02
OSVSUSE-SU-2018:2676-1 No score

Security update for tiff

This update for tiff fixes the following issues:

The following security vulnerabilities were addressed:

  • CVE-2015-8668: Fixed a heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff, which allowed remote attackers to execute arbitrary code or cause a denial of service via a large width field in a specially crafted BMP image. (bsc#960589)
  • CVE-2018-10779: Fixed a heap-based buffer over-read in TIFFWriteScanline() in tif_write.c (bsc#1092480)
  • CVE-2017-17942: Fixed a heap-based buffer overflow in the function PackBitsEncode in tif_packbits.c. (bsc#1074186)
  • CVE-2016-5319: Fixed a beap-based buffer overflow in bmp2tiff (bsc#983440)
Record
SUSE-SU-2018:2676-1
Updated
2026-11-02
OSVSUSE-SU-2024:0915-1 No score

Security update for tiff

This update for tiff fixes the following issues:

  • CVE-2023-41175: Fixed potential integer overflow in raw2tiff.c (bsc#1214686).
  • CVE-2023-38288: Fixed potential integer overflow in raw2tiff.c (bsc#1213590).
  • CVE-2023-40745: Fixed integer overflow in tiffcp.c (bsc#1214687).
  • CVE-2015-8668: Fixed Heap-based buffer overflow in bmp2tiff / PackBitsEncode (bsc#960589).
Record
SUSE-SU-2024:0915-1
Updated
2026-11-02
OSVUSN-3212-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-3212-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
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
libtiff
Mageia:5
From an advisory covering 19 CVEs
before 4.0.6-1.4.mga5
4.0.6-1.4.mga5
libtiff
Red Hat:enterprise_linux:7::client
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-debuginfo
Red Hat:enterprise_linux:7::client
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-devel
Red Hat:enterprise_linux:7::client
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-static
Red Hat:enterprise_linux:7::client
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-tools
Red Hat:enterprise_linux:7::client
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
Show 41 moreShow less
Affected packages
PackageAffectedFixed
libtiff
Red Hat:enterprise_linux:7::computenode
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-debuginfo
Red Hat:enterprise_linux:7::computenode
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-devel
Red Hat:enterprise_linux:7::computenode
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-static
Red Hat:enterprise_linux:7::computenode
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-tools
Red Hat:enterprise_linux:7::computenode
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff
Red Hat:enterprise_linux:7::server
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-debuginfo
Red Hat:enterprise_linux:7::server
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-devel
Red Hat:enterprise_linux:7::server
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-static
Red Hat:enterprise_linux:7::server
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-tools
Red Hat:enterprise_linux:7::server
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff
Red Hat:enterprise_linux:7::workstation
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-debuginfo
Red Hat:enterprise_linux:7::workstation
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-devel
Red Hat:enterprise_linux:7::workstation
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-static
Red Hat:enterprise_linux:7::workstation
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff-tools
Red Hat:enterprise_linux:7::workstation
From an advisory covering 19 CVEs
before 0:4.0.3-25.el7_2
0:4.0.3-25.el7_2
libtiff
Red Hat:enterprise_linux:6::client
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-debuginfo
Red Hat:enterprise_linux:6::client
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-devel
Red Hat:enterprise_linux:6::client
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-static
Red Hat:enterprise_linux:6::client
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff
Red Hat:enterprise_linux:6::computenode
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-debuginfo
Red Hat:enterprise_linux:6::computenode
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-devel
Red Hat:enterprise_linux:6::computenode
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-static
Red Hat:enterprise_linux:6::computenode
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff
Red Hat:enterprise_linux:6::server
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-debuginfo
Red Hat:enterprise_linux:6::server
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-devel
Red Hat:enterprise_linux:6::server
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-static
Red Hat:enterprise_linux:6::server
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff
Red Hat:enterprise_linux:6::workstation
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-debuginfo
Red Hat:enterprise_linux:6::workstation
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-devel
Red Hat:enterprise_linux:6::workstation
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
libtiff-static
Red Hat:enterprise_linux:6::workstation
From an advisory covering 19 CVEs
before 0:3.9.4-18.el6_8
0:3.9.4-18.el6_8
tiff
SUSE:Linux Enterprise Software Development Kit 11 SP4
From an advisory covering 4 CVEs
before 3.8.2-141.169.16.1
3.8.2-141.169.16.1
tiff
SUSE:Linux Enterprise Server 11 SP4
From an advisory covering 4 CVEs
before 3.8.2-141.169.16.1
3.8.2-141.169.16.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 11 SP4
From an advisory covering 4 CVEs
before 3.8.2-141.169.16.1
3.8.2-141.169.16.1
tiff
SUSE:Linux Enterprise Software Development Kit 12 SP5
From an advisory covering 4 CVEs
before 4.0.9-44.80.1
4.0.9-44.80.1
tiff
SUSE:Linux Enterprise Server 12 SP5
From an advisory covering 4 CVEs
before 4.0.9-44.80.1
4.0.9-44.80.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
From an advisory covering 4 CVEs
before 4.0.9-44.80.1
4.0.9-44.80.1
tiff
Ubuntu:14.04:LTS
before 4.0.3-7ubuntu0.6, plus listed versions
4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7
Show 4 moreShow less
4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.4
4.0.3-7ubuntu0.6
tiff
Ubuntu:16.04:LTS
before 4.0.6-1ubuntu0.1, plus listed versions
4.0.3-12.3ubuntu24.0.5-14.0.6-1
4.0.6-1ubuntu0.1
tiff
Ubuntu:14.04:LTS
From an advisory covering 39 CVEs
before 4.0.3-7ubuntu0.6, plus listed versions
4.0.2-4ubuntu34.0.3-5ubuntu14.0.3-64.0.3-6ubuntu14.0.3-7
Show 4 moreShow less
4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.4
4.0.3-7ubuntu0.6
tiff
Ubuntu:16.04:LTS
From an advisory covering 39 CVEs
before 4.0.6-1ubuntu0.1, plus listed versions
4.0.3-12.3ubuntu24.0.5-14.0.6-1
4.0.6-1ubuntu0.1

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-2015-8668 is a critical vulnerability (CVSS 9.8) in Libtiff, published January 8, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 13.7%, the 96th percentile. Fixed in tiff 4.0.6-3.

References

Show 152 moreShow less
MoveEnter Open