CVE-2015-8870
High · 7.4CVSS
7.4
EPSS
2.1%
Published
Dec 6, 2016
CISA due date
—
Cloudanix analysis
An old flaw in a common image library could let a specially made picture file crash programs or leak a little memory when the image is opened, but the problem was fixed years ago and is rarely exploited.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Data Exposure
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in bmp2tiff.c allows crafted RLE4/RLE8 BMP width/length values to trigger a heap-based buffer over-read, resulting in denial of service or leakage of adjacent process memory contents.
Why it matters to the business
Processing untrusted BMP images with outdated LibTIFF can cause application crashes or unintended exposure of memory data; the issue is over eight years old with low exploitation likelihood and no known ransomware use.
How an attack unfolds
An attacker creates a BMP file containing specially chosen width and length values in RLE-encoded data, then causes the target to invoke bmp2tiff or any LibTIFF-based BMP parser on the file, triggering the overflow during buffer calculations.
How to fix it
Upgrade LibTIFF to version 4.0.4 or newer; rebuild any dependent applications against the updated library and remove or disable the bmp2tiff utility if it is not required.
How to confirm the fix worked
Confirm the installed LibTIFF version is 4.0.4 or later; run the library test suite against known-good and crafted BMP samples to verify absence of over-read behavior.
Typical attack path
- Generate BMP file with malicious RLE4 or RLE8 width/length fields
- Deliver the file through email attachment, web download, or file share
- Victim application or script invokes bmp2tiff or LibTIFF BMP handling on the file
- Integer overflow occurs during buffer-size computation leading to over-read
- Process crashes or memory contents are leaked to attacker-controlled output
How to detect it
Review application logs for crashes or abnormal exits inside bmp2tiff or LibTIFF BMP decoding routines; inspect any generated output files or core dumps for unexpected memory contents following BMP processing.
What your security team should do
- Inventory all systems and containers that ship or link against LibTIFF and prioritize upgrade of any version older than 4.0.4
- Replace or deprecate direct use of the bmp2tiff command-line tool in automated workflows
- Add image-format validation or sandboxing around any remaining LibTIFF-dependent image processing
- Monitor EPSS and KEV updates for any future change in exploitation activity
The record
Integer overflow in tools/bmp2tiff.c in LibTIFF before 4.0.4 allows remote attackers to cause a denial of service (heap-based buffer over-read), or possibly obtain sensitive information from process memory, via crafted width and length values in RLE4 or RLE8 data in a BMP file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | tiff | 0 | 4.0.3-12 |
| Debian:12 | tiff | 0 | 4.0.3-12 |
| Debian:13 | tiff | 0 | 4.0.3-12 |
| Red Hat:enterprise_linux:6::client | libtiff | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::client | libtiff-debuginfo | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::client | libtiff-devel | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::client | libtiff-static | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::computenode | libtiff | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::computenode | libtiff-debuginfo | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::computenode | libtiff-devel | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::computenode | libtiff-static | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::server | libtiff | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::server | libtiff-debuginfo | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::server | libtiff-devel | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::server | libtiff-static | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::workstation | libtiff | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::workstation | libtiff-debuginfo | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::workstation | libtiff-devel | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:6::workstation | libtiff-static | 0 | 0:3.9.4-21.el6_8 |
| Red Hat:enterprise_linux:7::client | libtiff | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::client | libtiff-debuginfo | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::client | libtiff-devel | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::client | libtiff-static | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::client | libtiff-tools | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::computenode | libtiff | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::computenode | libtiff-debuginfo | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::computenode | libtiff-devel | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::computenode | libtiff-static | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::computenode | libtiff-tools | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::server | libtiff | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::server | libtiff-debuginfo | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::server | libtiff-devel | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::server | libtiff-static | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::server | libtiff-tools | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::workstation | libtiff | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::workstation | libtiff-debuginfo | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::workstation | libtiff-devel | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::workstation | libtiff-static | 0 | 0:4.0.3-27.el7_3 |
| Red Hat:enterprise_linux:7::workstation | libtiff-tools | 0 | 0:4.0.3-27.el7_3 |
| SUSE:Linux Enterprise Server 11 SP4 | tiff | 0 | 3.8.2-141.169.22.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | tiff | 0 | 3.8.2-141.169.22.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | tiff | 0 | 3.8.2-141.169.22.1 |
| Ubuntu:14.04:LTS | tiff | 0 | 4.0.3-7ubuntu0.4 |
| Ubuntu:16.04:LTS | tiff | 0 | 4.0.6-1 |
Related vulnerabilities
- CVE-2025-9165 A flaw has been found in LibTIFF 4.7.0. Also affects tiff
- CVE-2025-8961 A weakness has been identified in LibTIFF 4.7.0. Also affects tiff
- CVE-2025-8851 A vulnerability was determined in LibTIFF up to 4.5.1. Also affects tiff
- CVE-2025-8534 A vulnerability classified as problematic was found in libtiff 4.6.0. Also affects tiff
- CVE-2024-13978 A vulnerability was found in LibTIFF up to 4.7.0. Also affects tiff
- CVE-2025-8176 A vulnerability was found in LibTIFF up to 4.7.0. Also affects tiff
- CVE-2025-8177 A vulnerability was found in LibTIFF up to 4.7.0. Also affects tiff
- CVE-2023-52356 A segment fault (SEGV) flaw was found in libtiff that could be triggered by passing a… Also affects tiff