CVE-2026-130741: Grav 2.0.0 before 2.2.18 Arbitrary File Read via Twig Sandbox Bypass
Grav from 2.0.0 before 2.2.18 contains a Twig sandbox bypass vulnerability that allows publishers to read any server file by abusing allowlisted arraykeyvalue() and page accessor setters such as filePath(). Attackers can repoint page objects or overwrite the assets collections to render private keys and the API signing secret, then forge a super-admin API token.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An attacker needs publisher-level access, since the issue is triggered through Twig sandbox functionality available to publishers. No user interaction is required once that access is obtained.
What could an attacker do after exploiting it?
They can read arbitrary files on the server, including private keys and the API signing secret. With the API signing secret, they may be able to forge a super-admin API token.
Which Grav versions are affected?
Grav versions from 2.0.0 before 2.2.18 are affected. Upgrading to 2.2.18 or later addresses the affected version range.