CVE-2026-58655

HIGH

Grav Flex Objects - Server-Side Template Injection via Dynamic Titles

Title source: cna
STIX 2.1

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.

References (2)

Core 2
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-623v-m3c4-3pw8)
https://github.com/getgrav/grav/security/advisories/GHSA-623v-m3c4-3pw8
Third Party Advisory third-party-advisory
VulnCheck Advisory: Grav Flex Objects - Server-Side Template Injection via Dynamic Titles
https://www.vulncheck.com/advisories/grav-flex-objects-server-side-template-injection-via-dynamic-titles

Scores

CVSS v3 8.8
EPSS 0.0108
EPSS Percentile 61.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-94
Status published
Products (2)
getgrav/grav < 1.4.0
getgrav/grav 1.4.0
Published Jul 15, 2026
Tracked Since Jul 15, 2026