Skip to main content

Grav CMS EUVDEUVD-2026-58641

| CVE-2026-72827 HIGH
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-08-14 VulnCheck GHSA-4jrc-qc5x-3wrr
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privileged page editor
  2. Delivery
    Locate form with email-action parameters
  3. Exploit
    Inject Twig payload into subject, body, to, or from field
  4. Execution
    Submit form to trigger server-side Twig evaluation
  5. Persist
    Unsandboxed find filter executes OS command
  6. Impact
    Arbitrary code runs as web server process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
Exploitation Conditions

Exploitation requires a valid Grav CMS page editor account - the minimum authenticated role capable of configuring or submitting forms with email-action parameters. The target installation must be running a Grav CMS version prior to 2.0.13, and at least one form must have email-action configured with parameters (subject, body, to, or from) that are rendered through the unsandboxed Twig find filter. Exploitation is triggered at form submission, meaning the attacker must be able to submit the affected form. What limits exploitation: unauthenticated users cannot exploit this directly; the attack surface is bounded by the presence of email-action-enabled forms; and sites where all editor accounts are tightly controlled by administrators face substantially reduced realistic risk. No special network position, non-default server configuration, or additional tooling is required beyond the authenticated session.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) characterizes this as network-reachable with low attack complexity, requiring only low-privileged access and no user interaction - consistent with any authenticated page editor. High impact across VC/VI/VA confirms full system compromise potential. No EPSS score was supplied, preventing probabilistic exploitation likelihood assessment; this gap should be noted by defenders. The CVE is not listed in CISA KEV and no POC has been confirmed, meaning active exploitation is not verified. However, SSTI via Twig is a well-catalogued attack class with widely published technique libraries, substantially lowering the bar for a motivated attacker once the affected endpoint is identified. The PR:L requirement is the primary real-world limiting factor: exploitation is constrained to authenticated page editors, meaning sites with tightly controlled or trusted-only editor roles face materially lower risk than those permitting broad or self-service editor registration.

Exploit ScenarioDerived

A threat actor with a valid Grav page editor account navigates to a form configured with email-action and injects a Twig payload such as {{ ['id'] | map('system') | join }} into the email subject or body field. Upon form submission, the unsandboxed find filter evaluates the expression server-side, executing the OS command with the privileges of the web server process. From this foothold, the attacker can enumerate the server, exfiltrate files, establish persistence, or pivot to adjacent systems.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 14, 2026

Server-side template injection in Grav CMS before 2.0.13 allows low-privileged page editors to execute arbitrary operating-system commands via the Twig templating engine. Attackers exploit the unsandboxed find filter in email-action form parameters - injecting Twig payloads into subject, body, to, or from fields - which are evaluated server-side upon form submission, yielding full RCE. No public exploit code or CISA KEV listing has been identified at time of analysis, though the CVSS 4.0 score of 8.7 (VC:H/VI:H/VA:H) reflects full-compromise potential on the vulnerable system for any actor holding a page editor account.

RemediationAI

Upgrade to Grav CMS 2.0.13 or later, the vendor-released patch confirmed by GitHub Security Advisory GHSA-xx48-97m4-h7qm (https://github.com/getgrav/grav/security/advisories/GHSA-xx48-97m4-h7qm). If immediate patching is blocked, apply the following compensating controls as interim measures: restrict the page editor role exclusively to fully trusted internal users and revoke it from any externally-facing or self-registered accounts - this eliminates the PR:L attack surface but may disrupt legitimate content workflows and should be communicated to affected teams. Additionally, consider temporarily disabling email-action form processing site-wide by removing or commenting out email-action handlers in form configurations, which eliminates the vulnerable code path at the cost of disabling form-triggered email functionality. Audit existing page editor accounts for unauthorized or suspicious additions before patching.

Affected VersionsENISA

grav 0 <2.0.13

Affected Packages

euvd grav fix: 2.0.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Grav is a flat-file PHP CMS that uses the Twig templating engine for content rendering. CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) identifies the root cause class: user-supplied data is rendered through a Twig evaluation context that lacks sandboxing. Specifically, the email-action handler in Grav's form plugin accepts template expressions in fields such as subject, body, to, and from, and processes them via the find filter outside Twig's sandbox restrictions. This allows arbitrary PHP execution, including shell command invocation. The CPE string cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* covers all Grav versions prior to the patched release, indicating the flaw is not limited to a specific minor branch.

Know when Grav gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 9.9 CRITICAL

Network-reachable form submission, low complexity; PR:L for required editor account; S:C because OS-level command execution breaks out of the CMS application boundary.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 14, 2026 - 13:01 EUVD
CVE Published
Aug 14, 2026 - 11:35 cve.org
HIGH 8.7

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Grav CMS versions before 2.0.13 are vulnerable to template injection attacks that allow page editors to execute arbitrary system commands and achieve complete server compromise, potentially exposing sensitive data, disrupting services, or enabling lateral movement into internal networks. No public exploit code identified at time of analysis, but the vulnerability poses critical risk for any organization where page editor accounts are provisioned or could be compromised by internal or external threats. Organizations running vulnerable Grav CMS versions must treat this as a priority mitigation to prevent total infrastructure compromise.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: (1) restrict page editor account access to fully-vetted, essential personnel only; (2) implement web application firewall rules to block Twig template injection attempts in Grav CMS form submissions; (3) enable audit logging for all page editor account activities and conduct daily log reviews for suspicious command execution; (4) network-segment Grav CMS systems from critical internal infrastructure; (5) establish rapid incident response procedures to immediately isolate systems upon detection of exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
popular open-source flat-file CMS with active community but limited enterprise footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

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

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy