# CVE-2025-9301: cmake cmForEachCommand.cxx ReplayItems assertion

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-21T13:32:08.995Z
- Modified: 2026-06-17T10:08:42.447Z
- Weaknesses: CWE-617
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

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

(As written by CVE List.)

## Affected

- cmake: 4.1.20250725-gb5cce23

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.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`
- VulDB: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 3.3 Low `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 1.7 Low `AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C`

## References

- <https://drive.google.com/file/d/1TerUqQB8_lzJTwIBCBmE94zn7n-gOz4f/view?usp=sharing> (exploit)
- <https://vuldb.com/?id.320906> (technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.320906> (permissions-required, signature)
- <https://vuldb.com/?submit.632369> (third-party-advisory)
- <https://gitlab.kitware.com/cmake/cmake/-/issues/27135> (issue-tracking)
- <https://gitlab.kitware.com/cmake/cmake/-/issues/27135#note_1691629> (issue-tracking)
- <https://gitlab.kitware.com/cmake/cmake/-/commit/37e27f71bc356d880c908040cd0cb68fa2c371b8> (patch)

## Sources

- CVE List: [CVE-2025-9301](https://www.cve.org/CVERecord?id=CVE-2025-9301), CVE Terms of Use, modified 2025-08-21
- NVD: [CVE-2025-9301](https://nvd.nist.gov/vuln/detail/CVE-2025-9301), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-9301 · Whole record: https://cve.day/CVE-2025-9301.json · Rebuilt by cve.day 2026-11-25T22:59:03.470Z
