Divide By Zero error in libtiff 4.3.0

tiff Updated 02 Oct 2025

Summary

11/03/2022
N/A
Yes i
Medium
5.5

CVE-2022-0909: Divide By Zero error in tiffcrop in libtiff 4.3.0 allows attackers to cause a denial-of-service via a crafted tiff file. Affects tiff across 2 version ranges.

< 4.3.0-r0 < d21dcc67d0d3f4686ee989a085ad2bea9c58259d

Fixed in 4.3.0-r0. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libtiff is an open-source library for reading and writing TIFF image files. It is widely used in various applications and provides functionality for manipulating and processing TIFF files. However, a vulnerability has been discovered in version 4.3.0 of libtiff that allows attackers to cause a denial-of-service by exploiting a Divide By Zero error in the tiffcrop utility. This utility is used for cropping TIFF images. The vulnerability can be triggered by a crafted TIFF file, leading to the application crashing or becoming unresponsive.

Vulnerability Detail

The vulnerability, identified as CVE-2022-0909, originates from a Divide By Zero error in the tiffcrop utility of libtiff 4.3.0. When processing a specially crafted TIFF file, the application fails to handle a division operation correctly, resulting in a Divide By Zero error. This error can be exploited by an attacker to cause a denial-of-service, potentially crashing the application or making it unresponsive. The impact of this vulnerability is limited to the availability of the affected application and does not allow for remote code execution or unauthorized access to sensitive information.

How To Fix

Minimum fixed version

4.3.0-r0

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

There is no specific workaround provided for this vulnerability. The recommended solution is to update to the latest version of libtiff that includes the fix.

Conclusion

In conclusion, libtiff 4.3.0 is vulnerable to a Divide By Zero error in the tiffcrop utility, which can be exploited to cause a denial-of-service. Users are advised to update to the latest version of libtiff that includes the fix. Regularly updating the library is recommended to stay protected against known vulnerabilities. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for tiff →

Share this vulnerability

FAQ

libtiff is an open-source library for reading and writing TIFF image files. It provides functionality for manipulating and processing TIFF files in various applications.

The vulnerability allows attackers to cause a denial-of-service by exploiting a Divide By Zero error in the tiffcrop utility of libtiff 4.3.0. This can result in the affected application crashing or becoming unresponsive.

No, this vulnerability does not allow for remote code execution or unauthorized access to sensitive information. Its impact is limited to the availability of the affected application.

To fix this vulnerability, update to the latest version of libtiff that includes the fix. Users who compile libtiff from sources should ensure they have the latest version with the fix applied.

No specific workaround is provided for this vulnerability. Updating to the fixed version is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for tiff.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

4.3.0-r0

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