CVE-2025-9301cmake cmForEachCommand.cxx ReplayItems assertion
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.
What to do
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | cmake | Fix pending | UBUNTU-CVE-2025-9301 | |
| Ubuntu 26.04 | cmake | Under investigation | UBUNTU-CVE-2025-9301 | |
| Ubuntu 25.10 | cmake | Will not fix This just causes cmake to reach an assertion, it has very little security impact. | UBUNTU-CVE-2025-9301 | |
| Ubuntu 24.04 | cmake | Under investigation | UBUNTU-CVE-2025-9301 | |
| Ubuntu 22.04 | cmake | Under investigation | UBUNTU-CVE-2025-9301 | |
| Ubuntu 20.04 | cmake | Fix pending | UBUNTU-CVE-2025-9301 | |
| Ubuntu 18.04 | cmake | Fix pending | UBUNTU-CVE-2025-9301 | |
| Ubuntu 16.04 | cmake | Fix pending | UBUNTU-CVE-2025-9301 | |
| Debian 14 | cmake | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-9301 | |
| Debian 13 | cmake | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-9301 | |
| Debian 12 | cmake | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-9301 | |
| Red Hat Enterprise Linux 10 | cmake | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | cmake-data | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | cmake-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | cmake-filesystem | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | cmake-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | cmake-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cmake | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cmake-data | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cmake-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cmake-filesystem | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cmake-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cmake-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cmake | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cmake-data | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cmake-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cmake-filesystem | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cmake-gui | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cmake-rpm-macros | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cmake | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cmake-gui | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cmake | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cmake-gui | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- cmake: affected: 4.1.20250725-gb5cce23
Vendor advisories:
References
- https://vuldb.com/?id.320906
- https://vuldb.com/?ctiid.320906
- https://vuldb.com/?submit.632369
- https://gitlab.kitware.com/cmake/cmake/-/issues/27135
- https://gitlab.kitware.com/cmake/cmake/-/issues/27135#note_1691629
- https://drive.google.com/file/d/1TerUqQB8_lzJTwIBCBmE94zn7n-gOz4f/view?usp=sharing
- https://gitlab.kitware.com/cmake/cmake/-/commit/37e27f71bc356d880c908040cd0cb68fa2c371b8
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.