Skip to main content
← All vulnerabilities
CVE-2026-75574

Grav before 4.2.2 Remote Code Execution via Email Twig

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.2.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • getgrav grav

    fixed in 4.2.2

References 2

GitHub · getgrav/grav

vulncheck.com