Vulnerability in Getgrav Grav
CVE-2025-66297
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.008 (54.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 54th percentile — 54.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.008 · newest: 0.008 · change: 0.000
Affected products
- Getgrav Grav — versions 1.8.0, < 1.8.0-beta.27
Weakness classification (CWE)
References
- github.com/getgrav/grav/security/advisories/GHSA-858q-77wx-hhx6 (Exploit, Third Party Advisory)
- github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458 (Patch)
Frequently asked questions
- What is CVE-2025-66297?
- CVE-2025-66297 is a high-severity vulnerability in Getgrav Grav, classified under Improper Neutralization of Special Elements Used in a Template Engine. CVSS score: 8.8/10. Published 2025-12-01.
- How severe is CVE-2025-66297?
- High severity. CVSS v3 base score is 8.8 out of 10.