CVE-2026-58655 Details
Description
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.
A stored server-side template injection vulnerability has been identified in the Grav Flex Objects plugin, specifically in versions prior to 1.4.0. This vulnerability arises because the plugin evaluates user-controlled frontmatter values as Twig code when rendering dynamic collection or object titles. The issue bypasses Grav's security sanitization, allowing an attacker to execute arbitrary Twig code and escalate to remote command execution by accessing internal Grav services, such as the scheduler.
Users can update to Grav Flex Objects plugin version 1.4.0 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 15, 2026CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getgrav/grav/security/advisories/GHSA-623v-m3c4-3pw8 | CISA-ADP | AdvisoryExploitTechnical DescriptionVendor |
| https://github.com/getgrav/grav/security/advisories/GHSA-623v-m3c4-3pw8 | [email protected] | AdvisoryExploitTechnical DescriptionVendor |
| https://www.vulncheck.com/advisories/grav-flex-objects-server-side-template-injection-via-dynamic-titles | [email protected] | Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| getgrav/grav-plugin-flex-objects | < 1.4.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |
Volerion