Twig Sandbox Bypass in Grav by Getgrav
CVE-2026-130741
8.7HIGH
What is CVE-2026-130741?
A vulnerability in Grav allows unauthorized access to server files via a Twig sandbox bypass. Attackers can exploit the allowlisted array_key_value() function and page accessor setters, such as filePath(), to manipulate page objects or alter asset collections. This can lead to exposure of sensitive information, including private keys and API signing secrets, enabling the forging of super-admin API tokens. It is crucial for users of Grav versions prior to 2.2.18 to apply the latest updates to mitigate this security risk.
Affected Version(s)
grav 2.0.0 < 2.2.18
grav 2.2.18
