Out-of-bounds Read Affecting libtiff package, versions [3.6.1, 4.0.10)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.44% (87th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LIBTIFF-2317845
  • published14 Dec 2021
  • disclosed26 Jun 2017
  • creditUnknown

Introduced: 26 Jun 2017

CVE-2017-9935  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade libtiff to version 4.0.10 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read. In LibTIFF 4.0.8, there is 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.

CVSS Scores

version 3.1