Severity by source
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network-reachable stored injection needing only a low-privileged authoring account (PR:L) and no user interaction, yielding full RCE with high C/I/A; scope unchanged as code runs within the Grav app context.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.org
The bundled Grav Flex Objects plugin (getgrav/grav-plugin-flex-objects) before 1.4.0 contains a stored server-side template injection vulnerability. When rendering dynamic collection or object titles, the plugin passes user-controlled frontmatter values (page.header.flex.collection.title or page.header.flex.object.title) to Twig's template_from_string(), causing them to be evaluated as Twig code rather than treated as text. This path bypasses Grav's Security::cleanDangerousTwig() sanitization. An attacker who can control the title frontmatter of a publicly reachable Flex Objects page can achieve arbitrary Twig execution and escalate to remote command execution via access to internal Grav services such as the scheduler.
AnalysisAI
Stored server-side template injection in Grav's bundled Flex Objects plugin (getgrav/grav-plugin-flex-objects) before 1.4.0 lets a low-privileged content author inject Twig code through the dynamic collection/object title frontmatter, which is passed unsanitized to template_from_string() and executed. Because the title path bypasses Grav's Security::cleanDangerousTwig() filter, an attacker can reach internal Grav services such as the scheduler and escalate arbitrary Twig evaluation to full remote command execution. Reported by VulnCheck with a CVSS 4.0 base score of 8.7 (High); no public exploit identified at time of analysis and it is not listed in CISA KEV.
Technical ContextAI
Grav is a PHP flat-file CMS that uses the Twig templating engine for page rendering. The Flex Objects plugin supports dynamic collection and object titles defined in a page's frontmatter (page.header.flex.collection.title / page.header.flex.object.title). Rather than emitting these values as literal text, the plugin feeds them into Twig's template_from_string() function, which compiles and evaluates the supplied string as a live Twig template - the classic root cause of CWE-94 (Improper Control of Generation of Code / code injection) when the string is attacker-controlled. Grav normally defends against template abuse with Security::cleanDangerousTwig(), which strips dangerous Twig constructs from user content, but this title-rendering code path is invoked outside that sanitization boundary, so the filter never runs. The affected component is Grav itself as shipped with the bundled plugin; the CPE cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* identifies the Grav application as the vulnerable product family.
RemediationAI
Vendor-released patch: upgrade the Grav Flex Objects plugin to version 1.4.0 or later, which is the primary and recommended fix; apply it via the Grav plugin manager (bin/gpm update flex-objects) or by updating the bundled plugin in your Grav install, and review the advisory at https://github.com/getgrav/grav/security/advisories/GHSA-623v-m3c4-3pw8. Where immediate patching is not possible, reduce exposure by restricting which accounts can create or edit Flex Objects page frontmatter - remove page-authoring/admin rights from semi-trusted users so no attacker can set the collection or object title fields (trade-off: constrains legitimate editorial workflows) - and audit existing Flex Objects pages for suspicious title frontmatter containing Twig syntax ({{, {%, template_from_string). Additionally, run the Grav process under a least-privileged OS account and restrict or disable access to the internal scheduler service to blunt the RCE escalation path, accepting that disabling the scheduler will stop scheduled Grav tasks from running. See VulnCheck's advisory at https://www.vulncheck.com/advisories/grav-flex-objects-server-side-template-injection-via-dynamic-titles for details.
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Server-Side Template Injection (SSTI) vulnerability exists
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, due to improper authorization checks when modifying critical
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a user with admin panel access and permissions to create or e
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Grav is an open-source, flat-file content management system. Rated high severity (CVSS 8.8), this vulnerability is remot
Same weakness CWE-94 – Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-44633
GHSA-mpq7-q5x9-rf83