CVE-2025-66297
CVE-2025-66297 is a high-severity vulnerability in Getgrav Grav with a CVSS 3.x base score of 8.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1336.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- CVSS v4: 7.4
- EPSS exploit prediction: 1% (48th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-200078
- Weakness: CWE-1336
- Affected product: Getgrav Grav
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2025-66297?
- CVE-2025-66297 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2025-66297 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (48th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-66297?
- CVE-2025-66297 primarily affects Getgrav Grav. In total, 27 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2025-66297?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2025-66297 have an EU (EUVD) identifier?
- Yes. CVE-2025-66297 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-200078.
- When was CVE-2025-66297 published?
- CVE-2025-66297 was published on 2025-12-01 and last updated on 2026-06-17.
References
- https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458
- https://github.com/getgrav/grav/security/advisories/GHSA-858q-77wx-hhx6
Affected products (27)
- cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta1:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta10:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta11:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta12:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta13:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta14:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta15:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta16:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta17:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta18:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta19:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta2:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta20:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta21:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta22:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta23:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta24:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta25:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta26:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta3:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta4:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta5:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta6:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta7:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta8:*:*:*:*:*:*
- cpe:2.3:a:getgrav:grav:1.8.0:beta9:*:*:*:*:*:*
More vulnerabilities in Getgrav Grav
- CVE-2023-34251 — Critical (CVSS 9.9): Grav is a flat-file content management system. Versions prior to 1.7.42 are vulnerable to server side template…
- CVE-2021-47812 — Critical (CVSS 9.8): GravCMS 1.10.7 contains an unauthenticated vulnerability that allows remote attackers to write arbitrary YAML…
- CVE-2025-46199 — Critical (CVSS 9.8): Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to execute arbitrary code via a…
- CVE-2025-66301 — Critical (CVSS 9.6): Grav is a file-based Web platform. Prior to 1.8.0-beta.27, due to improper authorization checks when modifying critical…
- CVE-2026-42608 — Critical (CVSS 9.1): Grav is a file-based Web platform. Prior to 2.0.0-beta.2, there is a Path Traversal vulnerability within the FormFlash…
- CVE-2025-66844 — Critical (CVSS 9.1): In grav <1.7.49.5, a SSRF (Server-Side Request Forgery) vector may be triggered via Twig templates when page content is…
All CVEs affecting Getgrav Grav →
Other CWE-1336 vulnerabilities
- CVE-2025-53833 — Critical (CVSS 10.0): LaRecipe is an application that allows users to create documentation with Markdown inside a Laravel app. Versions prior…
- CVE-2024-32651 — Critical (CVSS 10.0): changedetection.io is an open source web page change detection, website watcher, restock monitor and notification…
- CVE-2026-45312 — Critical (CVSS 9.9): RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In 0.24.0 and earlier, a Jinja2 template…
- CVE-2026-9558 — Critical (CVSS 9.9): A Server-Side Template Injection (SSTI) vulnerability exists in Mautic's theme engine. The platform renders uploaded…
- CVE-2026-33897 — Critical (CVSS 9.9): Incus is a system container and virtual machine manager. Prior to version 6.23.0, instance template files can be used…
- CVE-2026-1868 — Critical (CVSS 9.9): GitLab has remediated a vulnerability in the Duo Workflow Service component of GitLab AI Gateway affecting all versions…