libtiff Stack-Based Buffer Overflow Vulnerability in readSeparateStripsIntoBuffer Function

Vulnerability

A stack-based buffer overflow vulnerability has been identified in libtiff versions prior to 4.7.1. The issue arises in the tiffcrop tool within the readSeparateStripsIntoBuffer function, where improper handling of malformed TIFF directories leads to an overflow of a stack-allocated array. This vulnerability was detected by AddressSanitizer, which reported a buffer over-read and subsequent crash.

Impact

Exploitation of this vulnerability causes a stack-based buffer overflow, leading to a crash and potential arbitrary code execution.

Reproduction

The vulnerability can be reproduced using the tiffcrop tool with a crafted TIFF file that has an improperly ordered directory or missing StripByteCounts. The command should include options to dump debug information, specify the input and output files, and manipulate the TIFF processing order, which triggers the buffer overflow by causing the readSeparateStripsIntoBuffer function to access memory beyond the allocated bounds of the srcbuffs array.

Remediation

Users are advised to update to libtiff version 4.7.1 or later, where this vulnerability has been fixed.

Added: Feb 23, 2026, 7:31 PM
Updated: Feb 23, 2026, 7:31 PM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
0.6
exploitability
5.2
remediation
0.0
relevance
3.1
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.