RCE in Getgrav Grav
CVE-2025-66299
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (SSTI) that allows any authenticated user with editor permissions to execute arbitrary code on the remote server, bypassing the existing security sandbox. Since the security sandbox does not fully protect the Twig object, it is possible to interact with it (e.g., call methods, read/write attributes) through maliciously crafted Twig template directives injected into a web page. This allows an authenticated editor to add arbitrary functions to the Twig attribute system.twig.safe_filters, effectively bypassing the Grav CMS sandbox. This vulnerability is fixed in 1.8.0-beta.27.
Vulnerability class: RCE (Remote Code Execution)
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.006 (46.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 47th percentile — 46.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.006 · 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-gjc5-8cfh-653x (Exploit, Third Party Advisory)
- github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458 (Patch)
Frequently asked questions
- What is CVE-2025-66299?
- CVE-2025-66299 is a high-severity vulnerability in Getgrav Grav, classified under Code Injection. CVSS score: 8.8/10. Published 2025-12-01.
- How severe is CVE-2025-66299?
- High severity. CVSS v3 base score is 8.8 out of 10.