Vulnerability · Published Aug 21, 2025 · Assigned by VulDB
CVE-2025-9301cmake cmForEachCommand.cxx ReplayItems assertion
Low 3.3
In plain English
A low-severity security flaw in cmake. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | cmake | no fix listed | DEBIAN-CVE-2025-9301 |
| Debian:13 | cmake | no fix listed | DEBIAN-CVE-2025-9301 |
| Debian:14 | cmake | no fix listed | DEBIAN-CVE-2025-9301 |
| Ubuntu:22.04:LTS | cmake | no fix listed | UBUNTU-CVE-2025-9301 |
| Ubuntu:24.04:LTS | cmake | no fix listed | UBUNTU-CVE-2025-9301 |
| Ubuntu:25.10 | cmake | no fix listed | UBUNTU-CVE-2025-9301 |
| Ubuntu:26.04:LTS | cmake | no fix listed | UBUNTU-CVE-2025-9301 |
| Ubuntu:26.10 | cmake | no fix listed | UBUNTU-CVE-2025-9301 |
Affected products (as reported)
Weakness: CWE-617 · Vector: 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
References
- VDB-320906 | cmake cmForEachCommand.cxx ReplayItems assertion vdb-entry, technical-description
- VDB-320906 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #632369 | cmake 4.1.20250725-gb5cce23 and other recent versions of the 4.x series. assertion failure 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://drive.google.com/file/d/1TerUqQB8_lzJTwIBCBmE94zn7n-gOz4f/view?usp=sharing exploit
- https://gitlab.kitware.com/cmake/cmake/-/commit/37e27f71bc356d880c908040cd0cb68fa2c371b8 patch