Vulnerability · Published Jul 26, 2025 · Assigned by VulDB
CVE-2025-8176LibTIFF tiffmedian.c get_histogram use after free
Medium 5.3
In plain English
A medium-severity use-after-free in LibTIFF. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libtiff | 4.0.9-36.el8_10 | ALSA-2025:20034 |
| AlmaLinux:9 | libtiff | 4.4.0-13.el9_6.2 | ALSA-2025:19113 |
| AlmaLinux:9 | libtiff | 4.4.0-15.el9_7.2 | ALSA-2025:20956 |
| AlmaLinux:8 | libtiff-devel | 4.0.9-36.el8_10 | ALSA-2025:20034 |
| AlmaLinux:9 | libtiff-devel | 4.4.0-15.el9_7.2 | ALSA-2025:20956 |
| AlmaLinux:9 | libtiff-devel | 4.4.0-13.el9_6.2 | ALSA-2025:19113 |
| AlmaLinux:8 | libtiff-tools | 4.0.9-36.el8_10 | ALSA-2025:20034 |
| AlmaLinux:9 | libtiff-tools | 4.4.0-15.el9_7.2 | ALSA-2025:20956 |
| AlmaLinux:9 | libtiff-tools | 4.4.0-13.el9_6.2 | ALSA-2025:19113 |
| AlmaLinux:8 | mingw32-libtiff | 4.0.9-3.el8_10 | ALSA-2025:19906 |
| AlmaLinux:8 | mingw32-libtiff-static | 4.0.9-3.el8_10 | ALSA-2025:19906 |
| AlmaLinux:8 | mingw64-libtiff | 4.0.9-3.el8_10 | ALSA-2025:19906 |
| AlmaLinux:8 | mingw64-libtiff-static | 4.0.9-3.el8_10 | ALSA-2025:19906 |
| Debian:12 | tiff | no fix listed | DEBIAN-CVE-2025-8176 |
| Debian:13 | tiff | no fix listed | DEBIAN-CVE-2025-8176 |
| Debian:14 | tiff | 4.7.1-1 | DEBIAN-CVE-2025-8176 |
| Rocky Linux:8 | libtiff | 0:4.0.9-36.el8_10 | RLSA-2025:20034 |
| Rocky Linux:9 | libtiff | 0:4.4.0-15.el9_7.2.0.1 | RLSA-2025:20956 |
| Rocky Linux:9 | libtiff | 0:4.4.0-13.el9_6.2 | RLSA-2025:19113 |
| Rocky Linux:8 | mingw-libtiff | 0:4.0.9-3.el8_10 | RLSA-2025:19906 |
| Ubuntu:22.04:LTS | tiff | 4.3.0-6ubuntu0.11 | USN-7707-1 |
| Ubuntu:22.04:LTS | tiff | 4.3.0-6ubuntu0.11 | UBUNTU-CVE-2025-8176 |
| Ubuntu:24.04:LTS | tiff | 4.5.1+git230720-4ubuntu2.3 | USN-7707-1 |
| Ubuntu:24.04:LTS | tiff | 4.5.1+git230720-4ubuntu2.3 | UBUNTU-CVE-2025-8176 |
Affected products (as reported)
Weakness: CWE-416, CWE-119 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
References
- VDB-317590 | LibTIFF tiffmedian.c get_histogram use after free vdb-entry, technical-description
- VDB-317590 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #621796 | LibTIFF v4.7.0 Use After Free third-party-advisory
- https://gitlab.com/libtiff/libtiff/-/issues/707 exploit, issue-tracking
- https://gitlab.com/libtiff/libtiff/-/merge_requests/727 patch
- https://gitlab.com/libtiff/libtiff/-/commit/fe10872e53efba9cc36c66ac4ab3b41a839d5172 patch
- http://www.libtiff.org/ product