Every CVE Search/ Get API key

CVE-2017-5225

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in...

9.8 CriticalFix available

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

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

4.39%Up 1.5 points since Apr 14, 2021
90%50%10%1%

What each source reports

CVE List 8.8

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

Record
CVE-2017-5225
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-122
Updated
2026-11-02
EUVDEUVD-2017-14330 8.8

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

Record
EUVD-2017-14330
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
GitHub AdvisoriesGHSA-rgrw-hm5r-cxr3 9.8

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in...

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

Record
GHSA-rgrw-hm5r-cxr3
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-122
Updated
2026-11-02
NVD 8.8

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

Record
CVE-2017-5225
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
9.8 CriticalCVSS:3.0/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-119, CWE-122
Updated
2026-11-02
OSVALPINE-CVE-2017-5225 9.8

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

Record
ALPINE-CVE-2017-5225
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
OSVBELL-CVE-2017-5225 8.8

CVE-2017-5225 does not affect BellSoft software

Record
BELL-CVE-2017-5225
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 9.8

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

Record
CVE-2017-5225
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
OSVDEBIAN-CVE-2017-5225 9.8

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

Record
DEBIAN-CVE-2017-5225
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
OSVUBUNTU-CVE-2017-5225 8.8

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value.

Record
UBUNTU-CVE-2017-5225
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
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
OSVCLSA-2025-1758896312 No score

libtiff: Fix of CVE-2017-5225

  • CVE-2017-5225: fix heap buffer overflow in tools/tiffcp by restricting BitsPerSample values
Record
CLSA-2025-1758896312
Updated
2026-11-02
OSVCLSA-2025-1760022663 No score

libtiff: Fix of CVE-2017-5225

  • CVE-2017-5225: fix heap buffer overflow in tools/tiffcp by restricting BitsPerSample values
Record
CLSA-2025-1760022663
Updated
2026-11-02
OSVMGASA-2017-0199 No score

Updated libtiff packages fix security vulnerability

Heap-based buffer overflow in the readContigStripsIntoBuffer function in tif_unix.c in LibTIFF 4.0.7 allows remote attackers to have unspecified impact via a crafted image. (CVE-2016-10092)

Integer overflow in tools/tiffcp.c in LibTIFF 4.0.7 allows remote attackers to have unspecified impact via a crafted image, which triggers a heap-based buffer overflow. (CVE-2016-10093)

Off-by-one error in the t2p_readwrite_pdf_image_tile function in tools/tiff2pdf.c in LibTIFF 4.0.7 allows remote attackers to have unspecified impact via a crafted image. (CVE-2016-10094)

Stack-based buffer overflow in the _TIFFVGetField function in tif_dir.c in LibTIFF 4.0.7 allows remote attackers to cause a denial of service (crash) via a crafted TIFF file. (CVE-2016-10095)

LibTIFF version 4.0.7 is vulnerable to a heap buffer overflow in the tools/tiffcp resulting in DoS or code execution via a crafted BitsPerSample value. (CVE-2017-5225)

LibTIFF 4.0.7 allows 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. (CVE-2016-10266)

LibTIFF 4.0.7 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted TIFF image, related to libtiff/tif_ojpeg.c:816:8. (CVE-2016-10267)

tools/tiffcp.c in LibTIFF 4.0.7 allows 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. (CVE-2016-10268)

LibTIFF 4.0.7 allows remote attackers to cause a denial of service (heap-based buffer over-read) or possibly have unspecified other impact via a crafted TIFF image, related to "READ of size 512" and libtiff/tif_unix.c:340:2. (CVE-2016-10269)

LibTIFF 4.0.7 allows remote attackers to cause a denial of service (heap-based buffer over-read) or possibly have unspecified other impact via a crafted TIFF image, related to "READ of size 8" and libtiff/tif_read.c:523:22. (CVE-2016-10270)

tools/tiffcrop.c in LibTIFF 4.0.7 allows remote attackers to cause a denial of service (heap-based buffer over-read and buffer overflow) or possibly have unspecified other impact via a crafted TIFF image, related to "READ of size 1" and libtiff/tif_fax3.c:413:13. (CVE-2016-10271)

LibTIFF 4.0.7 allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via a crafted TIFF image, related to "WRITE of size 2048" and libtiff/tif_next.c:64:9. (CVE-2016-10272)

The putagreytile function in tif_getimage.c in LibTIFF 4.0.7 has a left-shift undefined behavior issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. (CVE-2017-7592)

tif_read.c in LibTIFF 4.0.7 does not ensure that tif_rawdata is properly initialized, which might allow remote attackers to obtain sensitive information from process memory via a crafted image. (CVE-2017-7593)

The OJPEGReadHeaderInfoSecTablesDcTable function in tif_ojpeg.c in LibTIFF 4.0.7 allows remote attackers to cause a denial of service (memory leak) via a crafted image. (CVE-2017-7594)

The JPEGSetupEncode function in tiff_jpeg.c in LibTIFF 4.0.7 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted image. (CVE-2017-7595)

LibTIFF 4.0.7 has an "outside the range of representable values of type float" undefined behavior issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted image. (CVE-2017-7596)

tif_dirread.c in LibTIFF 4.0.7 has an "outside the range of representable values of type float" undefined behavior issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a…

Record
MGASA-2017-0199
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-2017:0453-1 No score

Security update for tiff

This update for tiff fixes the following issues:

  • A crafted TIFF image could cause a crash and potential code execution when processed by the 'tiffcp' utility (CVE-2017-5225, bsc#1019611).

Also a regression from the version update to 4.0.7 was fixed in handling TIFFTAG_FAXRECVPARAMS. (bsc#1022103)

Record
SUSE-SU-2017:0453-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-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
Alpine:v3.10
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.11
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.12
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.13
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.14
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.15
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.16
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.17
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.18
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.19
before 4.0.7-r1
4.0.7-r1
Show 44 moreShow less
Affected packages
PackageAffectedFixed
tiff
Alpine:v3.2
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.20
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.21
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.22
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.23
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.24
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.3
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.4
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.5
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.6
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.7
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.8
before 4.0.7-r1
4.0.7-r1
tiff
Alpine:v3.9
before 4.0.7-r1
4.0.7-r1
libtiff
TuxCare:CentOS:7
before 4.0.3-35.el7.tuxcare.els5
4.0.3-35.el7.tuxcare.els5
libtiff-devel
TuxCare:CentOS:7
before 4.0.3-35.el7.tuxcare.els5
4.0.3-35.el7.tuxcare.els5
libtiff-static
TuxCare:CentOS:7
before 4.0.3-35.el7.tuxcare.els5
4.0.3-35.el7.tuxcare.els5
libtiff-tools
TuxCare:CentOS:7
before 4.0.3-35.el7.tuxcare.els5
4.0.3-35.el7.tuxcare.els5
libtiff
TuxCare:OracleLinux:7
before 4.0.3-35.el7.tuxcare.els5
4.0.3-35.el7.tuxcare.els5
libtiff-devel
TuxCare:OracleLinux:7
before 4.0.3-35.el7.tuxcare.els5
4.0.3-35.el7.tuxcare.els5
libtiff-static
TuxCare:OracleLinux:7
before 4.0.3-35.el7.tuxcare.els5
4.0.3-35.el7.tuxcare.els5
libtiff-tools
TuxCare:OracleLinux:7
before 4.0.3-35.el7.tuxcare.els5
4.0.3-35.el7.tuxcare.els5
tiff
Debian:12
before 4.0.7-5
4.0.7-5
tiff
Debian:13
before 4.0.7-5
4.0.7-5
tiff
Debian:14
before 4.0.7-5
4.0.7-5
tiff
Debian:7
From an advisory covering 17 CVEs
before 4.0.2-6+deb7u9, plus listed versions
4.0.2-64.0.2-6+deb7u14.0.2-6+deb7u24.0.2-6+deb7u34.0.2-6+deb7u4
Show 4 moreShow less
4.0.2-6+deb7u54.0.2-6+deb7u64.0.2-6+deb7u74.0.2-6+deb7u8
4.0.2-6+deb7u9
tiff
Debian:8
From an advisory covering 18 CVEs
before 4.0.3-12.3+deb8u3, plus listed versions
4.0.3-12.34.0.3-12.3+deb8u14.0.3-12.3+deb8u2
4.0.3-12.3+deb8u3
libtiff
Mageia:5
From an advisory covering 26 CVEs
before 4.0.8-1.mga5
4.0.8-1.mga5
tiff
SUSE:Linux Enterprise Desktop 12 SP1
before 4.0.7-40.1
4.0.7-40.1
tiff
SUSE:Linux Enterprise Desktop 12 SP2
before 4.0.7-40.1
4.0.7-40.1
tiff
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 4.0.7-40.1
4.0.7-40.1
tiff
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 4.0.7-40.1
4.0.7-40.1
tiff
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 4.0.7-40.1
4.0.7-40.1
tiff
SUSE:Linux Enterprise Server 12 SP1
before 4.0.7-40.1
4.0.7-40.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 4.0.7-40.1
4.0.7-40.1
tiff
SUSE:Linux Enterprise Server 12 SP2
before 4.0.7-40.1
4.0.7-40.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 4.0.7-40.1
4.0.7-40.1
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
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
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
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2017-5225 is a critical vulnerability (CVSS 9.8) in Libtiff, published January 12, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.39%, the 91st percentile. Fixed in tiff 4.0.7-r1.

References

Show 120 moreShow less
This page doesn't list everything

Left out here: the rest of 1 source description. The JSON record has them.

MoveEnter Open