CVE-2026-75574: Grav before 4.2.2 Remote Code Execution via Email Twig

Published Aug 25, 2026
·
Updated

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.

Affected Software

1 affected component
getgrav/grav-plugin-email<4.2.2

Event History

Aug 25, 2026
CVE Published
via MITRE·01:30 AM
Data Sourced
via MITRE·01:30 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated remote user needs only the api.access and api.pages.write permissions. No user interaction is required once the attacker can edit and publish a page.

2

What does exploitation require?

The attacker must be able to place a Twig expression in header.form.process.email.body, publish the page, and submit the form. The Email action parameters are rendered as unsandboxed Twig templates.

3

What is the impact if exploitation succeeds?

The attacker can execute arbitrary operating-system commands with the privileges of the account running PHP. This can affect confidentiality, integrity, and availability.

4

Which versions are affected?

Versions of the Grav Email plugin before 4.2.2 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203