Divide By Zero error in libtiff 4.3.0
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.