Every CVE Search/ Get API key

CVE-2016-3658

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c in the tiffset tool in LibTIFF...

7.5 HighFix available

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

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

Exploit likelihood

4.00%Up 2.8 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

Record
CVE-2016-3658
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-125
Updated
2026-11-02
CVE List No score

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

Record
CVE-2016-3658
Updated
2026-11-02
EUVDEUVD-2016-4683 No score

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

Record
EUVD-2016-4683
Updated
2026-11-03
GitHub AdvisoriesGHSA-mw3g-h592-jp7p 7.5

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c in the tiffset tool in LibTIFF...

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

Record
GHSA-mw3g-h592-jp7p
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-125
Updated
2026-11-02
OSVALPINE-CVE-2016-3658 7.5

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

Record
ALPINE-CVE-2016-3658
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 7.5

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

Record
CVE-2016-3658
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2016-3658 7.5

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

Record
DEBIAN-CVE-2016-3658
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2016-3658 7.5

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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.

Record
UBUNTU-CVE-2016-3658
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2016-0361 No score

Updated libtiff packages fix security vulnerability

The TIFFWriteDirectoryTagLongLong8Array function in tif_dirwrite.c 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-3658).

They also fix:

An out-of-bound read of up to 3 bytes in readContigTilesIntoBuffer().

An out-of-bound read on some tiled images.

Segfault when specifying -r without argument (fax2tiff).

Record
MGASA-2016-0361
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:10554-1 No score

libtiff-devel-32bit-4.0.7-1.1 on GA media

These are all security issues fixed in the libtiff-devel-32bit-4.0.7-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10554-1
Updated
2026-11-02
OSVSUSE-SU-2016:3301-1 No score

Security update for tiff

The tiff library and tools were updated to version 4.0.7 fixing various bug and security issues.

  • CVE-2014-8127: out-of-bounds read with malformed TIFF image in multiple tools [bnc#914890]
  • CVE-2016-9297: tif_dirread.c read outside buffer in _TIFFPrintField() [bnc#1010161]
  • CVE-2016-3658: Illegal read in TIFFWriteDirectoryTagLongLong8Array function in tiffset / tif_dirwrite.c [bnc#974840]
  • CVE-2016-9273: heap overflow [bnc#1010163]
  • CVE-2016-3622: divide By Zero in the tiff2rgba tool [bnc#974449]
  • CVE-2016-5652: tiff2pdf JPEG Compression Tables Heap Buffer Overflow [bnc#1007280]
  • CVE-2016-9453: out-of-bounds Write memcpy and less bound check in tiff2pdf [bnc#1011107]
  • CVE-2016-5875: heap-based buffer overflow when using the PixarLog compressionformat [bnc#987351]
  • CVE-2016-9448: regression introduced by fixing CVE-2016-9297 [bnc#1011103]
  • CVE-2016-5321: out-of-bounds read in tiffcrop / DumpModeDecode() function [bnc#984813]
  • CVE-2016-5323: Divide-by-zero in _TIFFFax3fillruns() function (null ptr dereference?) [bnc#984815]
Record
SUSE-SU-2016:3301-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.2
before 4.0.7-r0
4.0.7-r0
tiff
Alpine:v3.3
before 4.0.7-r0
4.0.7-r0
tiff
Alpine:v3.4
before 4.0.7-r0
4.0.7-r0
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
before 4.0.2-6+deb7u13, plus listed versions
4.0.2-64.0.2-6+deb7u14.0.2-6+deb7u104.0.2-6+deb7u114.0.2-6+deb7u12
Show 8 moreShow less
4.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+deb7u13
tiff
Debian:8
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
before 4.0.6-1.5.mga5
4.0.6-1.5.mga5
libtiff
Mageia:5
before 4.0.8-1.mga5
4.0.8-1.mga5
Show 12 moreShow less
Affected packages
PackageAffectedFixed
tiff
SUSE:Linux Enterprise Desktop 12 SP1
before 4.0.7-35.1
4.0.7-35.1
tiff
SUSE:Linux Enterprise Desktop 12 SP2
before 4.0.7-35.1
4.0.7-35.1
tiff
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2
before 4.0.7-35.1
4.0.7-35.1
tiff
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 4.0.7-35.1
4.0.7-35.1
tiff
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 4.0.7-35.1
4.0.7-35.1
tiff
SUSE:Linux Enterprise Server 12 SP1
before 4.0.7-35.1
4.0.7-35.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 12 SP1
before 4.0.7-35.1
4.0.7-35.1
tiff
SUSE:Linux Enterprise Server 12 SP2
before 4.0.7-35.1
4.0.7-35.1
tiff
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 4.0.7-35.1
4.0.7-35.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
openSUSE:Tumbleweed
before 4.0.7-1.1
4.0.7-1.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

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

In short

CVE-2016-3658 is a high vulnerability (CVSS 7.5) in Libtiff, published October 3, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.00%, the 90th percentile. Fixed in tiff 4.0.7-r0.

References

Show 109 moreShow less
This page doesn't list everything

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

MoveEnter Open