CVE-2017-9117
Medium · 4.0CVSS
4.0
EPSS
2.2%
Published
May 21, 2017
CISA due date
—
Cloudanix analysis
A problem in software that reads image files can let attackers crash programs by sending specially made pictures.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing validation of biWidth and biHeight fields in BMP headers allows a heap-based buffer over-read when processing malformed images in LibTIFF.
Why it matters to the business
Applications handling BMP images may crash or experience denial of service; low exploitation likelihood but available public exploits increase urgency for systems still using the vulnerable library version.
How an attack unfolds
An attacker crafts a BMP image with biWidth and biHeight values that do not match actual pixel data, then supplies the file to any LibTIFF-based BMP processing routine, triggering the over-read and potential crash.
How to fix it
Upgrade affected LibTIFF consumers to versions containing the fix; for vault-k8s-fips (Chainguard) update to 1.3.1-r2 or later.
How to confirm the fix worked
Verify the installed LibTIFF version is newer than 4.0.6, then test BMP parsing with dimension-mismatched sample images to confirm absence of over-read behavior.
Typical attack path
- Craft a malicious BMP file with mismatched header dimensions
- Deliver the file to a target application that uses LibTIFF for image conversion or parsing
- Trigger processing of the image to induce the buffer over-read and application instability
How to detect it
Review application logs for crashes or segmentation faults during BMP processing; inspect file-handling code paths for LibTIFF calls and correlate with unexpected image inputs.
What your security team should do
- Apply the listed fixed version immediately given public exploit availability
- Scan all image-processing pipelines for LibTIFF dependencies and prioritize updates
- Monitor EPSS trend and remove any remaining vulnerable instances
The record
In LibTIFF 4.0.6 and possibly other versions, the program processes BMP images without verifying that biWidth and biHeight in the bitmap-information header match the actual input, as demonstrated by a heap-based buffer over-read in bmp2tiff. NOTE: mentioning bmp2tiff does not imply that the activation point is in the bmp2tiff.c file (which was removed before the 4.0.7 release).
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 | No fix |
| 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.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-5563 LibTIFF version 4.0.7 is vulnerable to a heap-based buffer over-read in tif_lzw.c… Also affects tiff