CVE-2016-3658
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.
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
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 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
tiffAlpine:v3.2 |
before 4.0.7-r0 | 4.0.7-r0 |
tiffAlpine:v3.3 |
before 4.0.7-r0 | 4.0.7-r0 |
tiffAlpine:v3.4 |
before 4.0.7-r0 | 4.0.7-r0 |
tiffDebian:12 |
before 4.0.6-3 | 4.0.6-3 |
tiffDebian:13 |
before 4.0.6-3 | 4.0.6-3 |
tiffDebian:14 |
before 4.0.6-3 | 4.0.6-3 |
tiffDebian: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 less4.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 |
tiffDebian: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 |
libtiffMageia:5 |
before 4.0.6-1.5.mga5 | 4.0.6-1.5.mga5 |
libtiffMageia:5 |
before 4.0.8-1.mga5 | 4.0.8-1.mga5 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
tiffSUSE:Linux Enterprise Desktop 12 SP1 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffSUSE:Linux Enterprise Desktop 12 SP2 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffSUSE:Linux Enterprise Server 12 SP1 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffSUSE:Linux Enterprise Server 12 SP2 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 4.0.7-35.1 | 4.0.7-35.1 |
tiffUbuntu: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 less4.0.3-7ubuntu0.14.0.3-7ubuntu0.24.0.3-7ubuntu0.34.0.3-7ubuntu0.4 |
4.0.3-7ubuntu0.6 |
tiffUbuntu: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 |
tiffopenSUSE:Tumbleweed |
before 4.0.7-1.1 | 4.0.7-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE 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
debian.org/security/2017/dsa-3844
bugzilla.maptools.org/show_bug.cgi?id=2546
security.gentoo.org/glsa/201701-16
openwall.com/lists/oss-security/2016/04/08/12
securityfocus.com/bid/93331
nvd.nist.gov/vuln/detail/CVE-2016-3658
Show 109 moreShow less
github.com/advisories/GHSA-mw3g-h592-jp7p
security.alpinelinux.org/vuln/CVE-2016-3658
security-tracker.debian.org/tracker/CVE-2016-3658
advisories.mageia.org/MGASA-2016-0361.html
bugs.mageia.org/show_bug.cgi?id=19688
advisories.mageia.org/MGASA-2017-0199.html
bugs.mageia.org/show_bug.cgi?id=20057
suse.com/support/update/announcement/2016/suse-su-20163301-1
bugzilla.suse.com/1007280
bugzilla.suse.com/1010161
bugzilla.suse.com/1010163
bugzilla.suse.com/1011103
bugzilla.suse.com/1011107
bugzilla.suse.com/914890
bugzilla.suse.com/974449
bugzilla.suse.com/974840
bugzilla.suse.com/984813
bugzilla.suse.com/984815
bugzilla.suse.com/987351
suse.com/security/cve/CVE-2014-8127
suse.com/security/cve/CVE-2016-3622
suse.com/security/cve/CVE-2016-3658
suse.com/security/cve/CVE-2016-5321
suse.com/security/cve/CVE-2016-5323
suse.com/security/cve/CVE-2016-5652
suse.com/security/cve/CVE-2016-5875
suse.com/security/cve/CVE-2016-9273
suse.com/security/cve/CVE-2016-9297
suse.com/security/cve/CVE-2016-9448
suse.com/security/cve/CVE-2016-9453
ubuntu.com/security/CVE-2016-3658
ubuntu.com/security/notices/USN-3212-1
cve.org/CVERecord?id=CVE-2016-3658
ubuntu.com/security/CVE-2015-7554
ubuntu.com/security/CVE-2015-8668
ubuntu.com/security/CVE-2016-3622
ubuntu.com/security/CVE-2016-3623
ubuntu.com/security/CVE-2016-3624
ubuntu.com/security/CVE-2016-3632
ubuntu.com/security/CVE-2016-3945
ubuntu.com/security/CVE-2016-3990
ubuntu.com/security/CVE-2016-3991
ubuntu.com/security/CVE-2016-5314
ubuntu.com/security/CVE-2016-5315
ubuntu.com/security/CVE-2016-5316
ubuntu.com/security/CVE-2016-5317
ubuntu.com/security/CVE-2016-5320
ubuntu.com/security/CVE-2016-5321
ubuntu.com/security/CVE-2016-5322
ubuntu.com/security/CVE-2016-5323
ubuntu.com/security/CVE-2016-5652
ubuntu.com/security/CVE-2016-5875
ubuntu.com/security/CVE-2016-6223
ubuntu.com/security/CVE-2016-8331
ubuntu.com/security/CVE-2016-9273
ubuntu.com/security/CVE-2016-9297
ubuntu.com/security/CVE-2016-9448
ubuntu.com/security/CVE-2016-9453
ubuntu.com/security/CVE-2016-9532
ubuntu.com/security/CVE-2016-9533
ubuntu.com/security/CVE-2016-9534
ubuntu.com/security/CVE-2016-9535
ubuntu.com/security/CVE-2016-9536
ubuntu.com/security/CVE-2016-9537
ubuntu.com/security/CVE-2016-9538
ubuntu.com/security/CVE-2016-9539
ubuntu.com/security/CVE-2016-9540
ubuntu.com/security/CVE-2016-10092
ubuntu.com/security/CVE-2016-10093
ubuntu.com/security/CVE-2016-10094
ubuntu.com/security/CVE-2017-5225
suse.com/security/cve/CVE-2009-2285
suse.com/security/cve/CVE-2009-2347
suse.com/security/cve/CVE-2010-2065
suse.com/security/cve/CVE-2010-2067
suse.com/security/cve/CVE-2010-2233
suse.com/security/cve/CVE-2010-4665
suse.com/security/cve/CVE-2011-0192
suse.com/security/cve/CVE-2011-1167
suse.com/security/cve/CVE-2012-1173
suse.com/security/cve/CVE-2012-2113
suse.com/security/cve/CVE-2012-3401
suse.com/security/cve/CVE-2012-4564
suse.com/security/cve/CVE-2013-1960
suse.com/security/cve/CVE-2013-1961
suse.com/security/cve/CVE-2013-4231
suse.com/security/cve/CVE-2013-4232
suse.com/security/cve/CVE-2013-4243
suse.com/security/cve/CVE-2013-4244
suse.com/security/cve/CVE-2014-8128
suse.com/security/cve/CVE-2014-8129
suse.com/security/cve/CVE-2014-8130
suse.com/security/cve/CVE-2014-9655
suse.com/security/cve/CVE-2015-1547
suse.com/security/cve/CVE-2015-7554
suse.com/security/cve/CVE-2015-8665
suse.com/security/cve/CVE-2015-8683
suse.com/security/cve/CVE-2015-8781
suse.com/security/cve/CVE-2015-8782
suse.com/security/cve/CVE-2015-8783
suse.com/security/cve/CVE-2016-3186
suse.com/security/cve/CVE-2016-3623
suse.com/security/cve/CVE-2016-3945
suse.com/security/cve/CVE-2016-3990
suse.com/security/cve/CVE-2016-3991
suse.com/security/cve/CVE-2016-5314
suse.com/security/cve/CVE-2016-5316
suse.com/security/cve/CVE-2016-5317
suse.com/security/cve/CVE-2016-5320
Left out here: the rest of 1 source description. The JSON record has them.