Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-64850: CWE-94: Improper Control of Generation of Code ('Code Injection') in getgrav grav

0
High
VulnerabilityCVE-2026-64850cvecve-2026-64850cwe-94
Published: 08/19/2026 (08/19/2026, 15:58:02 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →ai
getgrav/grav
pkg:github/getgrav/grav
Affected versions
<2.0.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 16:22:15 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses