CVE-2025-66297 Details
Description
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a user with admin panel access and permissions to create or edit pages in Grav CMS can enable Twig processing in the page frontmatter. By injecting malicious Twig expressions, the user can escalate their privileges to admin or execute arbitrary system commands via the scheduler API. This results in both Privilege Escalation (PE) and Remote Code Execution (RCE) vulnerabilities. This vulnerability is fixed in 1.8.0-beta.27.
A vulnerability in Grav CMS prior to version 1.8.0-beta.27 allows users with admin panel access and permissions to create or edit pages to inject malicious Twig expressions. This injection can be used to escalate privileges to admin or execute arbitrary system commands via the scheduler API, leading to both privilege escalation and remote code execution. The vulnerability arises because Twig processing can be enabled in the page frontmatter, and the Twig sandbox is not enforced, allowing full access to backend PHP objects and methods.
Users can update to Grav CMS version 1.8.0-beta.27 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458 | [email protected] | Patch |
| https://github.com/getgrav/grav/security/advisories/GHSA-858q-77wx-hhx6 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| getgrav grav | < 1.8.0 1.8.0 beta1 1.8.0 beta10 1.8.0 beta11 1.8.0 beta12 1.8.0 beta13 1.8.0 beta14 1.8.0 beta15 1.8.0 beta16 1.8.0 beta17 1.8.0 beta18 1.8.0 beta19 1.8.0 beta2 1.8.0 beta20 1.8.0 beta21 1.8.0 beta22 1.8.0 beta23 1.8.0 beta24 1.8.0 beta25 1.8.0 beta26 1.8.0 beta3 1.8.0 beta4 1.8.0 beta5 1.8.0 beta6 1.8.0 beta7 1.8.0 beta8 1.8.0 beta9 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 26, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 3, 2025 | Initial Analysis | [email protected] |
| Dec 1, 2025 | New CVE Received | [email protected] |