CVE-2026-75574

Grav before 4.2.2 Remote Code Execution via Email Twig

Published Aug 25, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-1336

    Improper Neutralization of Special Elements Used in a Template Engine

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 27, 2026, 4:46 PM
Reserved
Aug 17, 2026, 10:02 PM
Status
Deferred
Published
Aug 25, 2026, 2:16 AM
Modified
Oct 12, 2026, 3:10 PM