Twig Sandbox Bypass in Grav by Getgrav
CVE-2026-130741

8.7HIGH

Key Information:

Vendor

Getgrav

Status
Vendor
CVE Published:
18 November 2026

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

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.