CVE-2026-75574 Grav before 4.2.2 Remote Code Execution via Email Twig
HighCVSS 8.7
EPSS 0.66%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- PHP
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| getgrav/grav | < 4.2.2 | 4.2.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| getgrav/grav | < 4.2.2 | 4.2.2 |
References
- GitHub Security Advisory (GHSA-gh8j-q67c-j53f) vendor-advisory
- VulnCheck Advisory: Grav before 4.2.2 Remote Code Execution via Email Twig third-party-advisory
- ENISA EUVD EUVD-2026-65217 third-party-advisory