CVE-2017-5563
High · 8.8CVSS
8.8
EPSS
3.4%
Published
Jan 23, 2017
CISA due date
—
Cloudanix analysis
A problem in image-handling software can let attackers crash programs or run harmful code simply by opening a specially made picture file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read in tif_lzw.c during LZW decompression of crafted BMP images processed by bmp2tiff, enabling denial of service or potential code execution.
Why it matters to the business
Potential application crashes or remote code execution in image-handling workflows could disrupt services or lead to system compromise; low immediate risk given age, low EPSS trend, and absence from KEV or ransomware campaigns, though downstream dependents in ecosystems like karpenter increase exposure surface.
How an attack unfolds
An attacker creates a malicious BMP image that triggers the LZW buffer over-read in LibTIFF 4.0.7 and supplies it to the bmp2tiff tool; no named threat actors or campaigns are associated with this CVE.
How to fix it
Upgrade affected karpenter-0.23 installations to the fixed version 0.23.0-r9 or later to incorporate the patched LibTIFF dependency.
How to confirm the fix worked
Verify karpenter package version is at or above 0.23.0-r9 and confirm LibTIFF is updated beyond 4.0.7; test bmp2tiff against known malicious BMP samples in a controlled environment.
Typical attack path
- Craft a BMP image with malformed LZW data targeting tif_lzw.c
- Deliver the image to an application or script invoking bmp2tiff
- Trigger heap over-read to cause crash or attempt code execution
How to detect it
Review application logs for crashes or abnormal behavior in image conversion tools; inspect file-processing pipelines for unexpected BMP inputs; no specific threat-actor artifacts are known.
What your security team should do
- Immediately upgrade karpenter to 0.23.0-r9 where deployed
- Inventory all systems using LibTIFF 4.0.7 or earlier
- Disable or sandbox bmp2tiff usage until patched
- Monitor EPSS trend for any increase indicating rising exploit likelihood
The record
LibTIFF version 4.0.7 is vulnerable to a heap-based buffer over-read in tif_lzw.c resulting in DoS or code execution via a crafted bmp image to tools/bmp2tiff.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | tiff | 0 | No fix |
| Debian:11 | tiff | 0 | No fix |
| Debian:12 | tiff | 0 | No fix |
| Debian:13 | tiff | 0 | No fix |
| Debian:14 | tiff | 0 | 4.0.7-1 |
| Ubuntu:14.04:LTS | tiff | 0 | 4.0.3-7ubuntu0.9 |
| Ubuntu:16.04:LTS | tiff | 0 | 4.0.6-1ubuntu0.4 |
Related vulnerabilities
- CVE-2023-52356 A segment fault (SEGV) flaw was found in libtiff that could be triggered by passing a… Also affects tiff
- CVE-2023-3576 A memory leak flaw was found in Libtiff's tiffcrop utility. Also affects tiff
- CVE-2023-1916 A flaw was found in tiffcrop, a program distributed by the libtiff package. Also affects tiff
- CVE-2022-1354 A heap buffer overflow flaw was found in Libtiffs' tiffinfo.c in TIFFReadRawDataStriped()… Also affects tiff
- CVE-2017-17973 In LibTIFF 4.0.8, there is a heap-based use-after-free in the t2p_writeproc function in… Also affects tiff
- CVE-2017-17095 tools/pal2rgb.c in pal2rgb in LibTIFF 4.0.9 allows remote attackers to cause a denial of… Also affects tiff
- CVE-2014-8127 LibTIFF 4.0.3 allows remote attackers to cause a denial of service (out-of-bounds read… Also affects tiff
- CVE-2017-9117 In LibTIFF 4.0.6 and possibly other versions, the program processes BMP images without… Also affects tiff