LibTIFF vulnerabilities
80 known CVE vulnerabilities in LibTIFF, translated and rated.
- CVE-2026-36849High
A vulnerability in the libtiff library related to handling the SamplesPerPixel tag allows an attacker to cause a denial of service (DoS). Package updates are available for Amazon Linux 2023 that fix this issue.
- CVE-2026-52490Critical
A vulnerability in the libtiff library allows an attacker to execute arbitrary code via the process_command_opts() function in tools/tiffcrop.c.
- CVE-2017-16232High
LibTIFF 4.0.8 has multiple memory leak vulnerabilities, which allow attackers to cause a denial of service (memory consumption), as demonstrated by tif_open.c, tif_lzw.c, and tif_aux.c. NOTE: Third parties were unable to reproduce the issue.
- CVE-2017-17095High
The pal2rgb tool in LibTIFF 4.0.9 has a vulnerability that allows remote attackers to cause application crashes via a crafted TIFF file due to a heap-based buffer overflow.
- CVE-2017-11335High
There is a heap based buffer overflow in LibTIFF 4.0.8 in tools/tiff2pdf.c triggered by a PlanarConfig=Contig image. This can lead to an out-of-bounds write and potentially to remote denial of service or arbitrary code execution attacks.
- CVE-2017-10688High
In LibTIFF version 4.0.8, there is an assertion abort in the TIFFWriteDirectoryTagCheckedLong8Array function in tif_dirwrite.c. Crafted input can lead to a remote denial of service attack.
- CVE-2017-9935High
In LibTIFF 4.0.8, there is a heap-based buffer overflow in the t2p_write_pdf function, which could lead to various damages. A crafted TIFF document can lead to out-of-bounds read, invalid free, or memory corruption, potentially allowing arbitrary code execution.
- CVE-2016-9448High
The TIFFFetchNormalTag function in LibTiff 4.0.6 allows remote attackers to cause a denial of service (NULL pointer dereference and crash) by setting the tags TIFF_SETGET_C16ASCII or TIFF_SETGET_C32_ASCII to values that access 0-byte arrays.
- CVE-2016-6223Critical
The TIFFReadRawStrip1 and TIFFReadRawTile1 functions in libtiff before version 4.0.7 allow remote attackers to cause a denial of service (crash) or possibly obtain sensitive information via a negative index in a file-content buffer.
- CVE-2016-5323High
The _TIFFFax3fillruns function in libtiff before version 4.0.6 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted Tiff image.
- CVE-2016-9297High
The TIFFFetchNormalTag function in LibTiff 4.0.6 allows remote attackers to cause a denial of service (out-of-bounds read) via crafted TIFF_SETGET_C16ASCII or TIFF_SETGET_C32_ASCII tag values.
- CVE-2017-5225High
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-2016-9540Critical
In libtiff version 4.0.6, there is an out-of-bounds write in the tiffcp tool that affects tiled images with odd tile width versus image width. This issue was reported as MSVR 35103, also known as 'cpStripToTile heap-buffer-overflow.'
- CVE-2016-9539Critical
The libtiff library version 4.0.6 has an out-of-bounds read in the readContigTilesIntoBuffer() function.
- CVE-2016-9538Critical
In libtiff version 4.0.6, there is a vulnerability related to a buffer overflow in the readContigStripsIntoBuffer() function, leading to reading an undefined buffer.
- CVE-2016-9537Critical
The libtiff library version 4.0.6 has out-of-bounds write vulnerabilities in the tiffcrop.c tool. Reported as MSVR 35093, MSVR 35096, and MSVR 35097.
- CVE-2016-9536Critical
The libtiff library version 4.0.6 has out-of-bounds write vulnerabilities in heap allocated buffers in the t2p_process_jpeg_strip() function.
- CVE-2016-9534Critical
The libtiff library version 4.0.6 has an issue in the error code path of the TIFFFlushData1() function that does not reset the tif_rawcc and tif_rawcp members. This leads to a heap buffer overflow.
- CVE-2016-9533Critical
In libtiff version 4.0.6, there are out-of-bounds write vulnerabilities in heap allocated buffers related to tif_pixarlog.c. This issue was reported as MSVR 35094, also known as 'PixarLog horizontalDifference heap-buffer-overflow.'
- CVE-2016-3658High
The TIFFWriteDirectoryTagLongLong8Array function in the tiffset tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) via vectors involving the ma variable.
- CVE-2016-3624High
The cvtClump function in the rgb2ycbcr tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds write) by setting the "-v" option to -1.
- CVE-2016-3623High
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-3991High
A 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 or execute arbitrary code via a crafted TIFF image with zero tiles.
- CVE-2016-3990High
A heap-based buffer overflow in the horizontalDifference8 function in tif_pixarlog.c in LibTIFF 4.0.6 and earlier can be exploited by remote attackers. Attackers can cause a denial of service (crash) or execute arbitrary code via a crafted TIFF image to tiffcp.
- CVE-2015-8668Critical
Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff version 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-7554Critical
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-2026-18495Medium
A heap-buffer overflow vulnerability exists in the libtiff tiff2pdf utility due to an integer truncation error when processing crafted BigTIFF files. A 64-bit StripByteCounts value is truncated to a 32-bit integer, leading to an undersized memory allocation and a subsequent out-of-bounds memory copy, resulting in a crash and severe memory corruption.
- CVE-2026-52491High
An issue in libtiff 85f2ac8e0b01cb7db2bbecf4a3b891bdbef67938 allows an attacker to execute arbitrary code via the libtiff/tools/thumbnail.c: main() component.
- CVE-2026-52492High
An integer overflow in the libtiff rgb2ycbcr utility's cvtRaster() function when computing strip buffer sizes can result in an undersized heap allocation and subsequent heap-based buffer overflow during YCbCr conversion of a crafted TIFF image.
- CVE-2026-12912High
Vulnerability in libtiff library. A remote attacker can supply a specially crafted PixarLog-compressed TIFF image. The issue occurs when decoding Pixarlog codec images with PIXARLOGDATAFMT_8BITABGR output format and a specific stride value, leading to a heap-based buffer overflow. This could result in arbitrary code execution or denial of service (DoS).
- CVE-2026-4775High
A flaw was found in the libtiff library, involving a signed integer overflow in the putcontig8bitYCbCr44tile function. A remote attacker can exploit this by providing a specially crafted TIFF file, leading to an out-of-bounds heap write due to incorrect memory pointer calculations.
- CVE-2025-9900High
A flaw was found in Libtiff, a 'write-what-where' condition triggered when processing a specially crafted TIFF image file. By providing an abnormally large image height value in the file's metadata, an attacker can trick the library into writing attacker-controlled color data to an arbitrary memory location.
- CVE-2025-9165Low
In LibTIFF 4.7.0, the tiffcmp tool (functions _TIFFmallocExt, _TIFFCheckRealloc, TIFFHashSetNew, InitCCITTFax3 in tools/tiffcmp.c) suffers from a memory leak when manipulated. The attack requires local access and is of high complexity. The existence of the vulnerability is disputed — a researcher and the project maintainer consider it a simple bug on exit rather than a security issue.
- CVE-2025-8851Medium
A stack-based buffer overflow exists in LibTIFF up to 4.5.1 in the readSeparateStripsetoBuffer function of tools/tiffcrop.c (tiffcrop component). Local access is required to exploit this vulnerability.
- CVE-2025-8534Low
In libtiff 4.6.0, the PS_Lvl2page function in tools/tiff2ps.c (tiff2ps component) leads to a null pointer dereference via manipulation. The attack requires local access and is of high complexity, with exploitation appearing difficult. The exploit has been publicly disclosed, and the patch is named 6ba36f159fd396ad11bf6b7874554197736ecc8b.
- CVE-2024-13978Low
In LibTIFF up to 4.7.0, the t2p_read_tiff_init function in tools/tiff2pdf.c (fax2ps component) leads to a null pointer dereference via manipulation. The attack requires local access and is of high complexity, with exploitation appearing difficult. A patch named 2ebfffb0e8836bfb1cd7d85c059cd285c59761a4 is available.
- CVE-2025-8177Medium
In LibTIFF up to 4.7.0, the setrow function in tools/thumbnail.c contains a buffer overflow. The vulnerability is rated critical and requires local access. The product is no longer supported by the maintainer; patch e8c9d6c616b19438695fd829e58ae4fde5bfbc22 is available.
- CVE-2025-8176Medium
In LibTIFF up to 4.7.0, the get_histogram function in tools/tiffmedian.c contains a use-after-free. The vulnerability is rated critical, requires local access, and the exploit has been publicly disclosed. The fix is fe10872e53efba9cc36c66ac4ab3b41a839d5172.
- CVE-2024-7006High
A null pointer dereference flaw exists in Libtiff via tif_dirinfo.c. An attacker may trigger memory allocation failures (e.g., by restricting heap space or injecting faults), causing a segmentation fault and application crash.
- CVE-2023-52356High
A segment fault (SEGV) flaw was found in libtiff that could be triggered by passing a crafted tiff file to the TIFFReadRGBATileExt() API. This flaw allows a remote attacker to cause a heap-buffer overflow, leading to a denial of service.
- CVE-2023-52355High
An out-of-memory flaw was found in libtiff that could be triggered by passing a crafted tiff file to the TIFFRasterScanlineSize64() API. This flaw allows a remote attacker to cause a denial of service via a crafted input with a size smaller than 379 KB.
- CVE-2023-6228Low
An issue was found in the tiffcp utility distributed by the libtiff package where a crafted TIFF file on processing may cause a heap-based buffer overflow leads to an application crash.
- CVE-2023-6277Medium
An out-of-memory flaw was found in libtiff. Passing a crafted TIFF file to the TIFFOpen() API may allow a remote attacker to cause a denial of service via crafted input smaller than 379 KB.
- CVE-2023-3164Medium
A heap-buffer-overflow vulnerability was found in LibTIFF in the extractImageSection() function at tools/tiffcrop.c:7916 and tools/tiffcrop.c:7801, which can lead to denial of service via a crafted TIFF file.
- CVE-2023-41175Medium
A vulnerability was found in libtiff due to multiple potential integer overflows in raw2tiff.c. This flaw allows remote attackers to cause a denial of service or possibly execute arbitrary code via a crafted TIFF image, triggering a heap-based buffer overflow.
- CVE-2023-3618Medium
A flaw was found in libtiff that can lead to a segmentation fault due to a buffer overflow in the Fax3Encode function. A specially crafted TIFF file can cause a denial of service.
- CVE-2023-30086Medium
A buffer overflow vulnerability was found in Libtiff version 4.0.7. A local attacker can exploit the tiffcp function in tiffcp.c to cause a denial of service (DoS).
- CVE-2023-1916Medium
A flaw was found in tiffcrop, a program distributed by the libtiff package. A specially crafted TIFF file can lead to an out-of-bounds read in the extractImageSection function in tools/tiffcrop.c, resulting in a denial of service and limited information disclosure. This issue affects libtiff versions 4.x.
- CVE-2022-1354Medium
A heap buffer overflow flaw was found in Libtiff's tiffinfo.c in the TIFFReadRawDataStriped() function. This flaw allows an attacker to pass a crafted TIFF file to the tiffinfo tool, triggering a heap buffer overflow issue and causing a crash that leads to a denial of service.
- CVE-2022-1210Medium
A vulnerability classified as problematic was found in LibTIFF 4.3.0. Affected by this vulnerability is the TIFF File Handler of tiff2ps. Opening a malicious file leads to a denial of service. The attack can be launched remotely but requires user interaction. The exploit has been disclosed to the public and may be used.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

