CVE-2026-130741 PUBLISHED

Grav 2.0.0 before 2.2.18 Arbitrary File Read via Twig Sandbox Bypass

Assigner: VulnCheck
Reserved: 17.11.2026 Published: 18.11.2026 Updated: 18.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 2.0.0 to 2.2.18 (excl.)
  • Version 2.2.18 is unaffected

References

Problem Types

  • Exposure of Sensitive Information to an Unauthorized Actor CWE