CVE-2025-9165
LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak
Reported by vuldb · Published August 19, 2025
A flaw has been found in LibTIFF 4.7.0. This affects the function _TIFFmallocExt/_TIFFCheckRealloc/TIFFHashSetNew/InitCCITTFax3 of the file tools/tiffcmp.c of the component tiffcmp. Executing manipulation can lead to memory leak. The attack is restricted to local execution. This attack is characterized by high complexity. It is indicated that the exploitability is difficult. The exploit has been published and may be used. There is ongoing doubt regarding the real existence of this vulnerability. This patch is called ed141286a37f6e5ddafb5069347ff5d587e7a4e0. It is best practice to apply a patch to resolve this issue. A researcher disputes the security impact of this issue, because "this is a memory leak on a command line tool that is about to exit anyway". In the reply the project maintainer declares this issue as "a simple 'bug' when leaving the command line tool and (...) not a security issue at all".
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libtiff-static | Amazon Linux | 4.4.0-4.amzn2023.0.22 |
| tiff | Wolfi | 4.7.0-r6 |
| libtiff-tools | Amazon Linux | 4.0.3-35.amzn2.0.25 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | LibTIFF | 4.7.0 |
| amazon:2023 | libtiff-static | 0 |
| wolfi | tiff | 0 |
| amazon:2 | libtiff-tools | 0 |
| n/a | LibTIFF | 4.7.0 |
| amazon:2023 | libtiff | 0 |
| chainguard | tiff | 0 |
| alpine | tiff | 0 |
| amazon:2023 | libtiff-devel | 0 |
| amazon:2023 | libtiff-tools | 0 |
| amazon:2 | libtiff | 0 |
| amazon:2 | libtiff-static | 0 |
| amazon:2 | libtiff-devel | 0 |
Timeline
- Aug 19, 2025 CVE Published
- Aug 20, 2025 EPSS Score (30 in total, the first dated here)
- Oct 1, 2025 CVE Updated
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Jun 2, 2026 Security Advisory (7 in total, the first dated here)
- Oct 4, 2026 Distribution Patch (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-9165
vulnetix vdb fixes CVE-2025-9165
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-9165/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- VDB-320543 | LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak vdb-entrytechnical-description
- VDB-320543 | CTI Indicators (IOB, IOC, IOA) signaturepermissions-required
- Submit #630506 | libtiff tiffcmp 4.7.0+ (latest master branch) Memory Leak third-party-advisory
- Submit #630507 | libtiff tiffcmp 4.7.0+ (latest master branch) Memory Leak (Duplicate) third-party-advisory
- issue-tracking
- patch
- exploit
- patch
- product
- https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214 url