CVE-2026-130741 Grav 2.0.0 before 2.2.18 Arbitrary File Read via Twig Sandbox Bypass

High 8.7 Published Updated
Exploited in the wild
Not known
Fix
2.2.18

What is CVE-2026-130741?

CVE-2026-130741 is a high-severity vulnerability in getgrav grav, published on 18 Nov 2026.

Official 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.

Weakness: CWE-200

Which versions are affected by CVE-2026-130741?

How do I fix CVE-2026-130741?

Upgrade getgrav grav to 2.2.18 or later. The advisory says that version fixes it.

Is CVE-2026-130741 being exploited?

There is no known exploitation of CVE-2026-130741 in the wild and no public exploit code.

Sources

Also known as GHSA-8rhf-56h6-j77w, GHSA-rqp9-4m9f-fv8f.

Is CVE-2026-130741 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free