CVE-2026-75574
8.7
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
Summary
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
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| getgrav | grav | 0 < 4.2.2 | affected |
| getgrav | grav | 4.2.2 | unaffected |
Weaknesses
- CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
References
- https://github.com/getgrav/grav/security/advisories/GHSA-gh8j-q67c-j53f
- https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-email-twig
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.