Underflow Vulnerability in libtiff's tiffcrop Tool

tiff Updated 02 Oct 2025

Summary

17/08/2022
N/A
Yes i
Medium
5.5

CVE-2022-2869: libtiff's tiffcrop tool has a uint32_t underflow which leads to out of bounds read and write in the extractContigSamples8bits routine. Affects tiff across 2 version ranges.

< 4.4.0-r0 < b6a17e567f143fab49734a9e09e5bafeb6f97354

Fixed in 4.4.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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libtiff is an open-source library for reading and writing TIFF image files. It provides various tools, including tiffcrop, which is used for cropping TIFF images. The library is widely used in applications that handle image processing and manipulation. However, a vulnerability has been discovered in the tiffcrop tool, which can be exploited by an attacker to cause a crash or potentially execute further attacks.

Vulnerability Detail

The vulnerability (CVE-2022-2869) in libtiff's tiffcrop tool is due to a uint32_t underflow in the extractContigSamples8bits routine. This underflow leads to an out-of-bounds read and write, which can be triggered by supplying a crafted file to tiffcrop. An attacker can exploit this flaw by tricking a user into opening the malicious file with tiffcrop. The consequences of triggering this vulnerability can range from a crash to potential further exploitation of the system.

How To Fix

Minimum fixed version

4.4.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 known workaround for this vulnerability. It is essential to update the libtiff package to the fixed version as soon as possible.

Conclusion

The underflow vulnerability in libtiff's tiffcrop tool (CVE-2022-2869) poses a risk to systems that use the affected version of the library. It is crucial to update the libtiff package to version 4.4.0-r0 or later to mitigate the vulnerability. For further support on vulnerability remediation, please contact 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 is commonly used in applications that deal with image processing and manipulation.

tiffcrop is a tool provided by libtiff for cropping TIFF images. It is susceptible to the underflow vulnerability described in CVE-2022-2869.

An attacker can exploit this vulnerability by supplying a crafted file to the tiffcrop tool and tricking a user into opening it. This can lead to a crash or further exploitation of the system.

The impact of this vulnerability can range from a crash to potential further exploitation of the system. It is crucial to update the libtiff package to mitigate the risk.

No, there is no known workaround for this vulnerability. Updating the libtiff package to the fixed version is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for tiff.

How To Fix

Minimum fixed version

4.4.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