cvelo
P2 · HighCVSS 8.8EPSS 0.7%

Grav 2.0.0 before 2.2.18 Arbitrary File Read via Twig Sandbox Bypass

  • CVE-2026-130741
  • GHSA-rqp9-4m9f-fv8f
  • EUVD-2026-128813

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.

Text from the CVE.org record.

Recommendation

  • getgrav grav

    • If you run a version from 2.0.0 to before 2.2.18update to 2.2.18 or laterMinor version change: check the release notes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • getgrav grav

    Affected versionsFixed in
    from 2.0.0 to before 2.2.182.2.18

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.