CVE-2025-9301 Details
Description
A vulnerability was determined in cmake 4.1.20250725-gb5cce23. This affects the function cmForEachFunctionBlocker::ReplayItems of the file cmForEachCommand.cxx. This manipulation causes reachable assertion. The attack needs to be launched locally. The exploit has been publicly disclosed and may be utilized. Patch name: 37e27f71bc356d880c908040cd0cb68fa2c371b8. It is suggested to install a patch to address this issue.
An assertion failure vulnerability has been identified in CMake version 4.1.20250725-gb5cce23 and potentially other recent 4.x versions. The issue arises in the 'cmForEachFunctionBlocker::ReplayItems' function within 'cmForEachCommand.cxx'. This vulnerability leads to a denial-of-service condition, where CMake crashes due to an unhandled assertion related to iteration variable counts in malformed foreach constructs. The vulnerability can be exploited locally by processing a specially crafted CMakeLists.txt file that triggers the assertion failure.
Users are advised to update to CMake version 4.2.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 21, 2025CISA-ADP
Assessed Aug 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://drive.google.com/file/d/1TerUqQB8_lzJTwIBCBmE94zn7n-gOz4f/view?usp=sharing | [email protected] | ExploitPermission Required |
| https://gitlab.kitware.com/cmake/cmake/-/commit/37e27f71bc356d880c908040cd0cb68fa2c371b8 | [email protected] | Source CodeVendor |
| https://gitlab.kitware.com/cmake/cmake/-/issues/27135 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://gitlab.kitware.com/cmake/cmake/-/issues/27135#note_1691629 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/?ctiid.320906 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/?id.320906 | [email protected] | AdvisoryExploitRemedy |
| https://vuldb.com/?submit.632369 | [email protected] | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-617 | Reachable Assertion | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| CMake | 4.1.20250725-gb5cce23 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Aug 21, 2025 | New CVE Received | [email protected] |
Volerion