CVE-2026-72827
Received Received - Intake

Server-Side Template Injection in Grav CMS

Vulnerability report for CVE-2026-72827, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-14

Last updated on: 2026-08-14

Assigner: VulnCheck

Description

Grav CMS before 2.0.13 contains a server-side template injection vulnerability in email-action parameters that allows low-privileged page editors to execute arbitrary operating-system commands. Attackers can inject Twig payloads using the unsandboxed find filter in email subject, body, to, or from fields to achieve remote code execution when forms are submitted.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-14
Last Modified
2026-08-14
Generated
2026-08-14
AI Q&A
2026-08-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
getgrav grav to 2.0.13 (exc)
grav cms to 2.0.13 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

Grav CMS before version 2.0.13 has a server-side template injection flaw in its Twig engine. Low-privileged page editors can inject unsandboxed Twig payloads using the find filter in email-action fields like subject, body, to, or from. This allows arbitrary operating-system command execution when forms are submitted.

Detection Guidance

Check Grav CMS version with: grep -r 'version' /path/to/grav/vendor/getgrav/grav/CHANGELOG.md. If version is below 2.0.13, the system is vulnerable. Inspect email-action forms for Twig syntax in subject, body, to, or from fields. Monitor server logs for unusual command execution patterns or unsandboxed Twig filter usage.

Impact Analysis

Attackers with low privileges can execute arbitrary OS commands on the server. This could lead to full server takeover, data theft, or system compromise. The attack requires minimal privileges and can be triggered by submitting a form, even without a working mail server.

Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection requirements and HIPAA's security rules for protected health information. Non-compliance may result in legal penalties, fines, or reputational damage.

Mitigation Strategies

Update Grav CMS to version 2.0.13 or later immediately. Disable the Email plugin if not required. Restrict page editor privileges to minimum necessary. Apply sandboxing to email-action parameters by modifying Grav's Twig configuration. Monitor for suspicious activity in form submissions and server logs.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-72827. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart