CVE-2026-72827 Grav CMS before 2.0.13 Remote Code Execution via Twig

High 8.7 Published Updated

Low-privileged page editors can execute arbitrary OS commands via Twig injection in email-action parameters, risking full server compromise.

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-72827?

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

Official description

Grav CMS before 2.0.13 contains a server-side template injection vulnerability in email-action parameters that allows low-privileged page editors to execute arbitrary operating-system commands. Attackers can inject Twig payloads using the unsandboxed find filter in email subject, body, to, or from fields to achieve remote code execution when forms are submitted.

Weakness: CWE-1336

Which versions are affected by CVE-2026-72827?

How do I fix CVE-2026-72827?

No fix has been published for CVE-2026-72827 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-72827 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-72827 exists.

Sources

Also known as GHSA-4jrc-qc5x-3wrr, GHSA-xx48-97m4-h7qm.

Is CVE-2026-72827 in your software?

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

Check your SBOMs for free