Improper access control in Grav CMS - CVE-2025-66297

 

Improper access control in Grav CMS - CVE-2025-66297

Published: May 5, 2026


Vulnerability identifier: #VU130060
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2025-66297
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Grav CMS
Affected software:
Grav CMS

Detailed vulnerability description

The vulnerability allows a remote user to escalate privileges.

The vulnerability exists due to improper access control in Twig processing in page rendering when rendering a page with attacker-controlled Twig expressions enabled in frontmatter. A remote user can inject malicious Twig expressions into editable page content to escalate privileges.

For privilege escalation, the same non-admin user must also be logged in to the site frontend when the crafted page is visited.


How to mitigate CVE-2025-66297

Install security update from vendor's website.

Sources