Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') Affecting getgrav/grav package, versions >=1.7.0, <2.0.9


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.85% (55th 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-PHP-GETGRAVGRAV-18306792
  • published25 Jul 2026
  • disclosed23 Jul 2026
  • creditUnknown

Introduced: 23 Jul 2026

NewCVE-2026-65608  (opens in a new tab)
CWE-470  (opens in a new tab)

How to fix?

Upgrade getgrav/grav to version 2.0.9 or higher.

Overview

getgrav/grav is a Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS.

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') via the dynamicDataField function in the FlexDirectory component. An attacker can execute arbitrary shell commands on the server by supplying crafted input to the function, which is passed to call_user_func_array without sufficient restriction on dangerous functions.

CVSS Base Scores

version 4.0
version 3.1