Technical impact
Grav CMS versions before 2.2.18 contain a Twig sandbox bypass that lets authenticated publishers read arbitrary files on the server. By abusing the array_key_value() function and page accessor setters such as filePath(), an attacker can redirect page objects or overwrite assets collections to expose private keys and the API signing secret. Those credentials enable forging a super‑admin API token, creating a privilege escalation path.
Affected Systems
The vulnerability is present in Grav CMS released 2.0.0 through 2.2.17. Connected to the getgrav:grav product. Users running any of those releases on their sites are vulnerable. Administrators of Grav installations should verify their version and consider upgrading.
Risk and Exploitability
The CVSS score of 8.7 reflects high severity. EPSS is not reported at this time, and the flaw is not listed in CISA's KEV catalog, so the public exploitation likelihood may be limited but still significant. Attackers would need publisher or higher‑level credentials to trigger the sandbox bypass. The most probable attack path is an attacker with publish permissions manipulating page object properties to leak internal files and then using the extracted keys to forge an administrative token. Until a patch is applied, the system faces a medium‑high risk of confidentiality breach and potential privilege escalation.