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

High 8.7 Published Updated

Authenticated users with page write permissions can execute arbitrary OS commands via unsandboxed Twig templates in the Grav Email plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-75574?

CVE-2026-75574 is a high-severity code injection vulnerability in getgrav grav, published on 25 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-1336

Which versions are affected by CVE-2026-75574?

How do I fix CVE-2026-75574?

No fix has been published for CVE-2026-75574 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-75574 being exploited?

There is no known exploitation of CVE-2026-75574 in the wild and no public exploit code.

Sources

Also known as GHSA-3625-697m-q29v.

Is CVE-2026-75574 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free