Grav 2.0.0 before 2.2.18 Arbitrary File Read via Twig Sandbox Bypass

State
Published
Severity
8.7 High
Published
Nov 18, 2026
Updated
Nov 21, 2026
Reserved
Nov 17, 2026

Read the record on cve.org

Description

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 array_key_value() 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.

ProductVersions
grav getgrav2.0.0 to before 2.2.18 Affected2.2.18 Not Affected

Weaknesses

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.