CVE-2017-17973
High · 8.8CVSS
8.8
EPSS
3.1%
Published
Dec 29, 2017
CISA due date
—
Cloudanix analysis
A flaw in an image conversion library can let attackers take over systems when users process certain picture files, so organizations should update the software promptly.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based use-after-free in t2p_writeproc during TIFF to PDF conversion allows memory corruption when processing specially crafted TIFF images.
Why it matters to the business
Processing untrusted image files in document conversion or scanning workflows can lead to application crashes or remote code execution, disrupting operations and exposing sensitive data.
How an attack unfolds
An attacker crafts a malicious TIFF file that triggers the use-after-free condition in the t2p_writeproc function when the victim converts it to PDF using affected LibTIFF tools; the flaw may allow arbitrary code execution despite third-party reports questioning reproducibility.
How to fix it
Upgrade affected LibTIFF installations and downstream packages to versions that resolve the use-after-free; for falcoctl-fips-0.4 apply the fixed release 0.4.0-r4 or later.
How to confirm the fix worked
Verify the installed LibTIFF version is newer than 4.0.8, run regression tests with TIFF-to-PDF conversion on sample files, and confirm absence of the vulnerable t2p_writeproc code path.
Typical attack path
- Attacker prepares a malicious TIFF image targeting the t2p_writeproc use-after-free
- Victim opens or converts the file using tiff2pdf or dependent applications
- Use-after-free triggers memory corruption leading to control-flow hijacking
- Attacker executes arbitrary code or causes denial of service
How to detect it
Review application logs for crashes or abnormal memory access during TIFF processing, inspect for suspicious files triggering tiff2pdf execution, and correlate with known exploit patterns despite low EPSS.
What your security team should do
- Prioritize patching LibTIFF and dependent packages to the fixed versions within 30 days given exploit availability
- Disable or sandbox TIFF-to-PDF conversion for untrusted inputs until upgrades are complete
- Monitor for new exploit code and update EPSS tracking as maturity increases
The record
In LibTIFF 4.0.8, there is a heap-based use-after-free in the t2p_writeproc function in tiff2pdf.c. NOTE: there is a third-party report of inability to reproduce this issue
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 Desktop 12 SP3 | tiff | 0 | 4.0.9-44.10.1 |
| SUSE:Linux Enterprise Server 11 SP4 | tiff | 0 | 3.8.2-141.169.3.1 |
| SUSE:Linux Enterprise Server 12 SP3 | tiff | 0 | 4.0.9-44.10.1 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | tiff | 0 | 3.8.2-141.169.3.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | tiff | 0 | 4.0.9-44.10.1 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | tiff | 0 | 3.8.2-141.169.3.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | tiff | 0 | 4.0.9-44.10.1 |
| Ubuntu:Pro:14.04:LTS | tiff | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | tiff | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | tiff | 0 | No fix |
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-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
- CVE-2017-5563 LibTIFF version 4.0.7 is vulnerable to a heap-based buffer over-read in tif_lzw.c… Also affects tiff