The _TIFFmalloc function in tif_unix.c in LibTIFF 4.0.3 does not reject a zero size, which allows remote attackers to cause a denial of serv
The _TIFFmalloc function in tif_unix.c in LibTIFF 4.0.3 does not reject a zero size, which allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted TIFF image that is mishandled by the TIFFWriteScanline function in tif_write.c, as demonstrated by tiffdither.
- Published
- Mar 11, 2018
- Updated
- Jun 16, 2026
- EPSS
- 3.8% · 90th percentile
- CWE
- CWE-369
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
27
Monitor
Low priority for now.
- CVSS
- 26 / 40 · 6.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 3.8%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| libtiff | libtiff | cpe:2.3:a:libtiff:libtiff |
| redhat | enterprise linux desktop | cpe:2.3:o:redhat:enterprise_linux_desktop |
| redhat | enterprise linux server | cpe:2.3:o:redhat:enterprise_linux_server |
| redhat | enterprise linux server aus | cpe:2.3:o:redhat:enterprise_linux_server_aus |
| redhat | enterprise linux server eus | cpe:2.3:o:redhat:enterprise_linux_server_eus |
| redhat | enterprise linux server tus | cpe:2.3:o:redhat:enterprise_linux_server_tus |
| redhat | enterprise linux workstation | cpe:2.3:o:redhat:enterprise_linux_workstation |
| apple | mac os x | cpe:2.3:o:apple:mac_os_x |
| apple | iphone os | cpe:2.3:o:apple:iphone_os |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apple iphone osall versions
- apple mac os x10.10.0
- apple mac os x10.10.1
- apple mac os x10.10.2
- apple mac os x10.10.3
- apple mac os x10.8.5
- apple mac os x10.9.5
- libtiff libtiff4.0.3
- redhat enterprise linux desktop6.0
- redhat enterprise linux desktop7.0
- redhat enterprise linux server6.0
- redhat enterprise linux server7.0
- redhat enterprise linux server aus7.2
- redhat enterprise linux server aus7.3
- redhat enterprise linux server aus7.4
- redhat enterprise linux server eus7.2
- redhat enterprise linux server eus7.3
- redhat enterprise linux server eus7.4
- redhat enterprise linux server tus7.2
- redhat enterprise linux server tus7.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | tiff | before 4.0.5-1 | 4.0.5-1 |
| Red Hat:enterprise_linux:6::client | libtiff | before 0:3.9.4-18.el6_8 | 0:3.9.4-18.el6_8 |
| Red Hat:enterprise_linux:6::client | libtiff-debuginfo | before 0:3.9.4-18.el6_8 | 0:3.9.4-18.el6_8 |
| Red Hat:enterprise_linux:6::client | libtiff-devel | before 0:3.9.4-18.el6_8 | 0:3.9.4-18.el6_8 |
| Red Hat:enterprise_linux:6::client | libtiff-static | before 0:3.9.4-18.el6_8 | 0:3.9.4-18.el6_8 |
| Red Hat:enterprise_linux:7::client | libtiff | before 0:4.0.3-25.el7_2 | 0:4.0.3-25.el7_2 |
| Red Hat:enterprise_linux:7::client | libtiff-debuginfo | before 0:4.0.3-25.el7_2 | 0:4.0.3-25.el7_2 |
| Red Hat:enterprise_linux:7::client | libtiff-devel | before 0:4.0.3-25.el7_2 | 0:4.0.3-25.el7_2 |
| Red Hat:enterprise_linux:7::client | libtiff-static | before 0:4.0.3-25.el7_2 | 0:4.0.3-25.el7_2 |
| Red Hat:enterprise_linux:7::client | libtiff-tools | before 0:4.0.3-25.el7_2 | 0:4.0.3-25.el7_2 |
| SUSE:Linux Enterprise Desktop 12 | tiff | before 4.0.4-12.2 | 4.0.4-12.2 |
| SUSE:Linux Enterprise Software Development Kit 11 SP3 | tiff | before 3.8.2-141.160.1 | 3.8.2-141.160.1 |
Same product
libtiff: all recordsOther highest-scoring records for the same primary product.
- CVE-2006-3459Multiple stack-based buffer overflows in the TIFF library (libtiff) before 3.8.2, as used in Adobe Reader 9.3.0 and other products, allow co46Plan
- CVE-2004-1308Integer overflow in (1) tif_dirread.c and (2) tif_fax3.c for libtiff 3.5.7 and 3.7.0 allows remote attackers to execute arbitrary code via a44Plan
- CVE-2018-12900Heap-based buffer overflow in the cpSeparateBufToContigBuf function in tiffcp.c in LibTIFF 3.9.3, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 4.0.0beta7, 4.43Plan
- CVE-2015-8668Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attack43Plan
- CVE-2004-0929Heap-based buffer overflow in the OJPEGVSetField function in tif_ojpeg.c for libtiff 3.6.1 and earlier, when compiled with the OJPEG_SUPPORT42Plan
- CVE-2016-9540tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width.40Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:tiff | 4.0.5-1 · Debian:12 | Package registry (OSV) |
| red hat:libtiff | 0:4.0.3-25.el7_2 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libtiff-debuginfo | 0:4.0.3-25.el7_2 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libtiff-devel | 0:4.0.3-25.el7_2 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libtiff-static | 0:4.0.3-25.el7_2 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:libtiff-tools | 0:4.0.3-25.el7_2 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| suse:tiff | 3.8.2-141.160.1 · SUSE:Linux Enterprise Software Development Kit 11 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-369 · Divide By ZeroCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.apple.com/archives/security-announce/2015/Jun/msg00001.html
- lists.apple.com/archives/security-announce/2015/Jun/msg00002.html
- openwall.com/lists/oss-security/2015/01/24/15
- rhn.redhat.com/errata/RHSA-2016-1546.html
- rhn.redhat.com/errata/RHSA-2016-1547.html
- support.apple.com/kb/HT204941
- support.apple.com/kb/HT204942
- www.conostix.com/pub/adv/CVE-2014-8130-LibTIFF-Division_By_Zero.txt
- www.securityfocus.com/bid/72353
- www.securitytracker.com/id/1032760
- bugzilla.redhat.com/show_bug.cgi?id=1185817
- github.com/vadz/libtiff/commit/3c5eb8b1be544e41d2c336191bc4936300ad7543
- security.gentoo.org/glsa/201701-16
Vendor advisories and official records. Exploit/PoC links are deliberately left out.