Buffer overflow in Libtiff
CVE-2025-8176
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.003, 21.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Libtiff
- Libtiff — versions 4.0, 4.1, 4.2
Weakness classification (CWE)
References
- VDB-317590 | LibTIFF tiffmedian.c get_histogram use after free (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-317590 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #621796 | LibTIFF v4.7.0 Use After Free (Third Party Advisory, VDB Entry, third-party-advisory)
- gitlab.com/libtiff/libtiff/-/issues/707 (issue-tracking, Exploit, exploit, Issue Tracking, Vendor Advisory)
- gitlab.com/libtiff/libtiff/-/merge_requests/727 (Product, patch)
- gitlab.com/libtiff/libtiff/-/commit/fe10872e53efba9cc36c66ac4ab3b41a839d5172 (Patch, patch)
- www.libtiff.org/ (Product, product)