Reachable Assertion Affecting cmake/cmake package, versions [4.0.0-rc1,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-CMAKECMAKE-12150879
  • published22 Aug 2025
  • disclosed21 Aug 2025
  • creditXudong Cao, Meng Xu

Introduced: 21 Aug 2025

NewCVE-2025-9301  (opens in a new tab)
CWE-617  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Reachable Assertion via cmForEachFunctionBlocker::ReplayItems function of the file cmForEachCommand.cxx. An attacker can cause a program crash by providing CMakeLists.txt files containing malformed foreach constructs that triggers a reachable assertion.

CVSS Base Scores

version 4.0
version 3.1