CVE-2026-58655: Grav Flex Objects - Server-Side Template Injection
- Cve: CVE-2026-58655
- Name: Grav Flex Objects - Server-Side Template Injection
- 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.
- Impact: Attackers can execute arbitrary Twig code and escalate to remote command execution, potentially compromising the entire server.
- Remediation: Update to version 1.4.0 or later.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.01417
- Epss percentile: 0.7347
- Assignee: [email protected]
- Published at: 2026-07-15T12:18:17Z
- Age in days: 132
- Modified at: 2026-10-24T22:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-58655
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/getgrav/grav/security/advisories/GHSA-623v-m3c4-3pw8 | nvd | |
| https://www.vulncheck.com/advisories/grav-flex-objects-server-side-template-injection-via-dynamic-titles | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| getgrav:grav | < 1.4.0 | no | cna | /v1/products/getgrav/grav |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| getgrav/grav | security_advisory | yes | /v1/repositories/getgrav/grav |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 1971
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports