VYPR
Unrated severityNVD Advisory· Published Dec 18, 2023· Updated Nov 21, 2025

Libtiff: heap-based buffer overflow in cpstriptotile() in tools/tiffcp.c

CVE-2023-6228

Description

An issue was found in the tiffcp utility distributed by the libtiff package where a crafted TIFF file on processing may cause a heap-based buffer overflow leads to an application crash.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

15

Patches

Vulnerability mechanics

Root cause

"Missing bounds checking in cpStripToTile() allows a heap-based buffer overflow when processing a crafted TIFF file."

Attack vector

An attacker crafts a malicious TIFF file that, when processed by the `tiffcp` utility, triggers a heap-based buffer overflow in the `cpStripToTile()` function [ref_id=1]. The overflow occurs during the copying of strip data to tile data without proper bounds checking. This can cause the application to crash, resulting in a denial of service.

Affected code

The vulnerability resides in the `cpStripToTile()` function in `tools/tiffcp.c` of the libtiff package. A crafted TIFF file processed by the `tiffcp` utility triggers a heap-based buffer overflow, leading to an application crash.

What the fix does

The advisory does not include a patch diff, but the fix addresses the missing bounds validation in `cpStripToTile()` that allowed the heap buffer overflow [ref_id=1]. The update ensures that when copying strip data into a tile buffer, the size of the destination buffer is properly checked against the amount of data being written. This prevents writes beyond the allocated heap memory.

Preconditions

  • inputThe attacker must supply a crafted TIFF file that triggers the overflow in cpStripToTile().
  • inputThe victim must process the malicious TIFF file using the tiffcp utility.

Generated on Jun 14, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.