CVE-2026-64850: CWE-94: Improper Control of Generation of Code ('Code Injection') in getgrav grav
CVE-2026-64850 is a high-severity code injection vulnerability in Grav, a file-based web platform. Versions prior to 2.0.7 allow an attacker with admin.pages or api.pages.write privileges to execute arbitrary commands as the web server user by exploiting unsafe use of call_user_func_array() in the Blueprint::dynamicData() function. The vulnerability is fixed in version 2.0.7.
AI Analysis
Technical Summary
Grav versions before 2.0.7 contain a code injection vulnerability (CWE-94) in the Blueprint::dynamicData() method located in system/src/Grav/Common/Data/Blueprint.php. This method unsafely passes an editor-controlled Class::method callback and arguments to PHP's call_user_func_array() without filtering dangerous callbacks. An attacker with admin.pages or api.pages.write permissions can leverage Grav\Common\Utils::arrayFilterRecursive() with the system callback to inject and execute arbitrary commands embedded in page frontmatter, running them as the web server user when the page is viewed. This issue was resolved in Grav version 2.0.7.
Potential Impact
Successful exploitation allows an attacker with limited privileges (admin.pages or api.pages.write) to execute arbitrary code on the server with the web server's user privileges. This can lead to full system compromise depending on the server configuration. The vulnerability has a CVSS 4.0 score of 8.7, indicating high severity. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade Grav to version 2.0.7 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor advisory stating the issue is fixed in 2.0.7.
CVE-2026-64850: CWE-94: Improper Control of Generation of Code ('Code Injection') in getgrav grav
Description
CVE-2026-64850 is a high-severity code injection vulnerability in Grav, a file-based web platform. Versions prior to 2.0.7 allow an attacker with admin.pages or api.pages.write privileges to execute arbitrary commands as the web server user by exploiting unsafe use of call_user_func_array() in the Blueprint::dynamicData() function. The vulnerability is fixed in version 2.0.7.
CVSS v4.0
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Grav versions before 2.0.7 contain a code injection vulnerability (CWE-94) in the Blueprint::dynamicData() method located in system/src/Grav/Common/Data/Blueprint.php. This method unsafely passes an editor-controlled Class::method callback and arguments to PHP's call_user_func_array() without filtering dangerous callbacks. An attacker with admin.pages or api.pages.write permissions can leverage Grav\Common\Utils::arrayFilterRecursive() with the system callback to inject and execute arbitrary commands embedded in page frontmatter, running them as the web server user when the page is viewed. This issue was resolved in Grav version 2.0.7.
Potential Impact
Successful exploitation allows an attacker with limited privileges (admin.pages or api.pages.write) to execute arbitrary code on the server with the web server's user privileges. This can lead to full system compromise depending on the server configuration. The vulnerability has a CVSS 4.0 score of 8.7, indicating high severity. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade Grav to version 2.0.7 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor advisory stating the issue is fixed in 2.0.7.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-20T18:31:39.290Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85d4edacd9273b494d33cc
Added to database: 08/19/2026, 16:08:13 UTC
Last enriched: 08/19/2026, 16:22:15 UTC
Last updated: 08/19/2026, 16:44:03 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.