Description
The Grav Email plugin (getgrav/grav-plugin-email) before 4.2.2 renders page-editor-controlled Email action parameters as unsandboxed Twig templates. An authenticated remote user with only api.access and api.pages.write permissions can place a Twig expression in header.form.process.email.body, publish the page, and submit the form to execute an arbitrary operating-system command as the account running PHP.
Published: 2026-08-25
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Patch Now
AI Analysis

Impact

The Grav Email plugin renders user‑controlled email body parameters as unsandboxed Twig templates (CWE-1336). An authenticated remote user holding only api.access and api.pages.write permissions can embed a Twig expression in the email body, publish the page, and trigger execution of arbitrary operating‑system commands as the PHP process user.

Affected Systems

The vulnerability affects the Grav CMS (getgrav:grav) before version 4.2.2. All installations running the Grav 4.x series with the email plugin enabled and without a patched version are potentially vulnerable.

Risk and Exploitability

The CVSS score of 8.7 indicates high severity. EPSS is not available, and the issue is not listed in CISA KEV, suggesting no confirmed widespread exploitation. However, the RCE impact combined with the limited permissions required renders it a significant threat. The likely attack vector is remote, with the attacker interacting with the web interface or API to submit the manipulated form.

Generated by OpenCVE AI on August 25, 2026 at 04:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Grav to version 4.2.2 or later, where the Email plugin validates and sanitizes email body parameters.
  • As a temporary workaround, disable the Grav Email plugin or configure it to reject unsandboxed Twig expressions in email bodies.
  • Review and restrict user roles so that only trusted administrators possess api.access and api.pages.write permissions, minimizing the attack surface.

Generated by OpenCVE AI on August 25, 2026 at 04:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 25 Aug 2026 02:00:00 +0000

Type Values Removed Values Added
Description The Grav Email plugin (getgrav/grav-plugin-email) before 4.2.2 renders page-editor-controlled Email action parameters as unsandboxed Twig templates. An authenticated remote user with only api.access and api.pages.write permissions can place a Twig expression in header.form.process.email.body, publish the page, and submit the form to execute an arbitrary operating-system command as the account running PHP.
Title Grav before 4.2.2 Remote Code Execution via Email Twig
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-1336
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-27T16:46:04.470Z

Reserved: 2026-08-17T22:02:23.045Z

Link: CVE-2026-75574

cve-icon Vulnrichment

Updated: 2026-08-27T16:12:14.463Z

cve-icon NVD

Status : Deferred

Published: 2026-08-25T02:16:51.303

Modified: 2026-08-31T20:52:56.343

Link: CVE-2026-75574

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T05:30:16Z

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine