4.8
MEDIUM CVSS 4.0
CVE-2025-9165
LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak
Description

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".

INFO

Published Date :

Aug. 19, 2025, 8:15 p.m.

Last Modified :

Oct. 1, 2025, 4:15 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2025-9165 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Libtiff libtiff
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 LOW [email protected]
CVSS 2.0 LOW [email protected]
CVSS 3.1 LOW [email protected]
CVSS 3.1 LOW [email protected]
CVSS 4.0 MEDIUM [email protected]
CVSS 4.0 LOW [email protected]
Solution
Memory leak vulnerability in LibTIFF can be resolved by applying the provided patch or updating.
  • Apply the patch ed141286a37f6e5ddafb5069347ff5d587e7a4e0.
  • Update LibTIFF to a patched version.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2025-9165.

URL Resource
http://www.libtiff.org/ Product
https://drive.google.com/file/d/1FWhmkzksH8-qU0ZM6seBzGNB3aPnX3G8/view?usp=sharing Exploit
https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0 Patch
https://gitlab.com/libtiff/libtiff/-/issues/728 Exploit Issue Tracking Vendor Advisory
https://gitlab.com/libtiff/libtiff/-/merge_requests/747 Issue Tracking Patch Vendor Advisory
https://vuldb.com/?ctiid.320543 Permissions Required VDB Entry
https://vuldb.com/?id.320543 Third Party Advisory VDB Entry
https://vuldb.com/?submit.630506 Third Party Advisory VDB Entry
https://vuldb.com/?submit.630507 Third Party Advisory VDB Entry
https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214 Exploit Issue Tracking Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-9165 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-9165 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-9165 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-9165 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Oct. 01, 2025

    Action Type Old Value New Value
    Added Tag disputed
    Changed Description 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. The exploit has been published and may be used. This patch is called ed141286a37f6e5ddafb5069347ff5d587e7a4e0. It is best practice to apply a patch to resolve this issue. 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".
    Added CVSS V4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Removed CVSS V4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
    Removed CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
    Added CVSS V2 (AV:L/AC:H/Au:S/C:N/I:N/A:P)
    Removed CVSS V2 (AV:L/AC:L/Au:S/C:N/I:N/A:P)
  • Initial Analysis by [email protected]

    Sep. 11, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:libtiff:libtiff:4.7.0:*:*:*:*:*:*:*
    Added Reference Type VulDB: http://www.libtiff.org/ Types: Product
    Added Reference Type VulDB: https://drive.google.com/file/d/1FWhmkzksH8-qU0ZM6seBzGNB3aPnX3G8/view?usp=sharing Types: Exploit
    Added Reference Type VulDB: https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0 Types: Patch
    Added Reference Type VulDB: https://gitlab.com/libtiff/libtiff/-/issues/728 Types: Exploit, Issue Tracking, Vendor Advisory
    Added Reference Type VulDB: https://gitlab.com/libtiff/libtiff/-/merge_requests/747 Types: Issue Tracking, Patch, Vendor Advisory
    Added Reference Type CVE: https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214 Types: Exploit, Issue Tracking, Vendor Advisory
    Added Reference Type VulDB: https://vuldb.com/?ctiid.320543 Types: Permissions Required, VDB Entry
    Added Reference Type VulDB: https://vuldb.com/?id.320543 Types: Third Party Advisory, VDB Entry
    Added Reference Type VulDB: https://vuldb.com/?submit.630506 Types: Third Party Advisory, VDB Entry
    Added Reference Type VulDB: https://vuldb.com/?submit.630507 Types: Third Party Advisory, VDB Entry
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Aug. 26, 2025

    Action Type Old Value New Value
    Added Reference https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214
  • New CVE Received by [email protected]

    Aug. 19, 2025

    Action Type Old Value New Value
    Added Description 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. The exploit has been published and may be used. This patch is called ed141286a37f6e5ddafb5069347ff5d587e7a4e0. It is best practice to apply a patch to resolve this issue.
    Added CVSS V4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
    Added CVSS V2 (AV:L/AC:L/Au:S/C:N/I:N/A:P)
    Added CWE CWE-404
    Added CWE CWE-401
    Added Reference http://www.libtiff.org/
    Added Reference https://drive.google.com/file/d/1FWhmkzksH8-qU0ZM6seBzGNB3aPnX3G8/view?usp=sharing
    Added Reference https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0
    Added Reference https://gitlab.com/libtiff/libtiff/-/issues/728
    Added Reference https://gitlab.com/libtiff/libtiff/-/merge_requests/747
    Added Reference https://vuldb.com/?ctiid.320543
    Added Reference https://vuldb.com/?id.320543
    Added Reference https://vuldb.com/?submit.630506
    Added Reference https://vuldb.com/?submit.630507
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 4.8
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
VS Confidentiality
VS Integrity
VS Availability
SS Confidentiality
SS Integrity
SS Availability
Base CVSS Score: 3.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 1.7
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact