Denial of Service Vulnerability in TIFF Package: CVE-2017-7595

tiff Updated 02 Oct 2025

Summary

09/04/2017
N/A
Yes i
Medium
5.5

ALPINE-CVE-2017-7595: The JPEGSetupEncode function in tiff_jpeg.c in LibTIFF 4.0.7 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted image. Affects tiff versions < 4.0.7-r2. Fixed in 4.0.7-r2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The TIFF package is a widely used library for handling TIFF (Tagged Image File Format) images. It provides functionalities for reading and writing TIFF files, which are commonly used in various applications, including digital imaging and printing. The library is known for its versatility and support for multiple compression formats. However, it has been found to be vulnerable to a specific issue that can lead to application crashes when processing crafted images.

Vulnerability Detail

The vulnerability, identified as CVE-2017-7595, originates from the JPEGSetupEncode function in the tiff_jpeg.c file of LibTIFF version 4.0.7. This flaw allows remote attackers to exploit the library by sending specially crafted images, resulting in a divide-by-zero error that causes a denial of service (DoS) condition. The ramifications of this vulnerability include application crashes and potential disruption of services that rely on the TIFF library for image processing. The CVSS score for this vulnerability is 5.5, indicating a moderate level of severity.

How To Fix

Minimum fixed version

4.0.7-r2

This is the first release that contains the fix.

sudo apk add --upgrade tiff

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, a temporary workaround is to avoid processing untrusted or potentially malicious TIFF images until the package is updated. Additionally, implementing input validation to check the integrity of TIFF files before processing can help mitigate the risk.

Conclusion

The CVE-2017-7595 vulnerability in the TIFF package poses a significant risk of denial of service through crafted images. It is crucial for users to update to the patched version 4.0.7-r2 to protect their applications from potential exploitation. Regular monitoring for vulnerabilities using tools like Vulert can help maintain software security.

See every vulnerability recorded for tiff →

Share this vulnerability

FAQ

CVE-2017-7595 is a vulnerability in the TIFF package that allows remote attackers to cause a denial of service by exploiting a divide-by-zero error in the JPEGSetupEncode function.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The primary impact is a denial of service, which can lead to application crashes and service disruptions when processing crafted TIFF images.

Yes, the patched version of the TIFF package is 4.0.7-r2. Updating to this version will resolve the vulnerability.

If you cannot update the package, avoid processing untrusted TIFF images and consider implementing input validation to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for tiff.

How To Fix

Minimum fixed version

4.0.7-r2

This is the first release that contains the fix.

sudo apk add --upgrade tiff

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback