CVE-2025-8851 LibTIFF tiffcrop tiffcrop.c readSeparateStripsetoBuffer stack-based overflow

Medium 4.8 Published Updated

A stack-based buffer overflow in LibTIFF's tiffcrop tool allows local attackers to execute arbitrary code or cause denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-8851?

CVE-2025-8851 is a medium-severity memory corruption vulnerability in Libtiff Libtiff, published on 11 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was determined in LibTIFF up to 4.5.1. Affected by this issue is the function readSeparateStripsetoBuffer of the file tools/tiffcrop.c of the component tiffcrop. The manipulation leads to stack-based buffer overflow. Local access is required to approach this attack. The patch is identified as 8a7a48d7a645992ca83062b3a1873c951661e2b3. It is recommended to apply a patch to fix this issue.

Weakness: CWE-121, CWE-119

Which versions are affected by CVE-2025-8851?

It affects 1 product.

Linux distribution packages (2)
tiff SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5All versions4.0.9-44.106.1
tiff openSUSE:TumbleweedAll versions4.7.1-3.1

Products include Libtiff Libtiff.

How do I fix CVE-2025-8851?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-8851 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8851 exists.

All Libtiff Libtiff vulnerabilities

Sources

Also known as AZL-66258, AZL-66282, CLSA-2026-1787932569, DEBIAN-CVE-2025-8851, ECHO-0263-9519-53e9, GHSA-mcqf-6qjh-v78v and 6 more.

Is CVE-2025-8851 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free