Grav code execution via Twig sandbox escape
getgrav grav
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| getgrav grav |
|
|
Original description
Grav from 2.0.0 before 2.2.18 contains a remote code execution vulnerability that allows page editors to escape the Twig sandbox by sending requests with a Host: pages header. Attackers can write configuration YAML through page folders and media .meta.yaml sidecars to register an unsandboxed Twig namespace and run shell commands as the web server user.
From the CVE record · VulnCheck