Cloudanix VulnDB

CVE-2025-8176

Medium · 5.3

CVSS

5.3

EPSS

0.3%

Published

Jul 26, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in an image handling library lets someone who can run programs on your computer cause crashes or memory problems when processing certain picture files.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Low
Impact
Other
Component
Library
Class
Use After Free
Remediation
Patch
Effort
Low
Patch risk
Low

What it actually does

Use-after-free in get_histogram function within tools/tiffmedian.c allows local manipulation of heap memory after deallocation during TIFF histogram processing.

Why it matters to the business

Local attackers can crash image processing tools or corrupt memory in workflows handling TIFF files, potentially disrupting graphics, scanning, or document pipelines that depend on LibTIFF.

How an attack unfolds

An attacker crafts a malicious TIFF file and invokes tiffmedian locally on a system with an affected LibTIFF build; the tool's get_histogram routine triggers the use-after-free, enabling memory corruption that may be leveraged for limited local impact.

How to fix it

Update to a build containing commit fe10872e53efba9cc36c66ac4ab3b41a839d5172 or later; rebuild affected tools such as tiffmedian and verify the fix is present before reintroducing TIFF processing workloads.

How to confirm the fix worked

Confirm the installed LibTIFF source or binary contains commit fe10872e53efba9cc36c66ac4ab3b41a839d5172; test tiffmedian with known trigger files and monitor for crashes or unexpected behavior.

Typical attack path

  1. Identify or obtain a target system running LibTIFF <= 4.7.0
  2. Prepare a specially crafted TIFF image that triggers the vulnerable code path
  3. Execute tiffmedian against the crafted file with local privileges
  4. Trigger the use-after-free during histogram calculation to achieve memory corruption

How to detect it

Review command-line logs and process execution records for invocations of tiffmedian against untrusted or recently received TIFF files; correlate with any resulting segmentation faults or abnormal memory usage in the same process.

What your security team should do

  • Apply the referenced commit to all LibTIFF builds and rebuild dependent packages immediately
  • Restrict local execution of tiffmedian and similar tools to trusted users until patched
  • Scan internal repositories and build pipelines for references to vulnerable LibTIFF versions

The record

A vulnerability was found in LibTIFF up to 4.7.0. It has been declared as critical. This vulnerability affects the function get_histogram of the file tools/tiffmedian.c. The manipulation leads to use after free. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used. The patch is identified as fe10872e53efba9cc36c66ac4ab3b41a839d5172. It is recommended to apply a patch to fix this issue.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 libtiff 0 4.0.9-36.el8_10
AlmaLinux:8 libtiff-devel 0 4.0.9-36.el8_10
AlmaLinux:8 libtiff-tools 0 4.0.9-36.el8_10
AlmaLinux:8 mingw32-libtiff 0 4.0.9-3.el8_10
AlmaLinux:8 mingw32-libtiff-static 0 4.0.9-3.el8_10
AlmaLinux:8 mingw64-libtiff 0 4.0.9-3.el8_10
AlmaLinux:8 mingw64-libtiff-static 0 4.0.9-3.el8_10
AlmaLinux:9 libtiff 0 4.4.0-13.el9_6.2
AlmaLinux:9 libtiff 0 4.4.0-15.el9_7.2
AlmaLinux:9 libtiff-devel 0 4.4.0-13.el9_6.2
AlmaLinux:9 libtiff-devel 0 4.4.0-15.el9_7.2
AlmaLinux:9 libtiff-tools 0 4.4.0-13.el9_6.2
AlmaLinux:9 libtiff-tools 0 4.4.0-15.el9_7.2
Chainguard tiff 0 4.7.0-r6
Chainguard tiff-dev 0 4.7.0-r6
Chainguard tiff-doc 0 4.7.0-r6
Debian:11 tiff 0 No fix
Debian:12 tiff 0 No fix
Debian:13 tiff 0 No fix
Debian:14 tiff 0 No fix
Mageia:9 expat 0 2.7.3-1.mga9
Mageia:9 libtiff 0 4.5.1-1.6.mga9
SUSE:Linux Enterprise Module for Basesystem 15 SP6 tiff 0 4.7.0-150600.3.13.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 tiff 0 4.7.0-150600.3.13.1
SUSE:Linux Enterprise Module for Package Hub 15 SP6 tiff 0 4.7.0-150600.3.13.1
SUSE:Linux Enterprise Module for Package Hub 15 SP7 tiff 0 4.7.0-150600.3.13.1
Wolfi tiff 0 4.7.0-r6
Wolfi tiff-dev 0 4.7.0-r6
Wolfi tiff-doc 0 4.7.0-r6
openSUSE:Leap 15.6 tiff 0 4.7.0-150600.3.13.1
openSUSE:Leap 16.0 tiff 0 4.7.1-160000.1.1
openSUSE:Leap 16.0 tiff-man 0 4.7.1-160000.1.1
openSUSE:Tumbleweed tiff 0 4.7.0-7.1

Related vulnerabilities