CVE-2025-66297
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2025-66297, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-12-01

Last updated on: 2025-12-03

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-12-01
Last Modified
2025-12-03
Generated
2026-07-06
AI Q&A
2025-12-01
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 27 associated CPEs
Vendor Product Version / Range
getgrav grav to 1.8.0 (exc)
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0
getgrav grav 1.8.0

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1336 The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in Grav CMS versions prior to 1.8.0-beta.27. A user who already has admin panel access and permissions to create or edit pages can enable Twig processing in the page frontmatter. By injecting malicious Twig expressions, the user can escalate their privileges to admin level or execute arbitrary system commands through the scheduler API. This leads to both Privilege Escalation and Remote Code Execution vulnerabilities.

Impact Analysis

If exploited, this vulnerability allows an attacker with limited admin panel access to escalate their privileges to full admin rights or execute arbitrary system commands on the server. This can lead to unauthorized control over the system, data breaches, and potentially full compromise of the affected Grav CMS installation.

Mitigation Strategies

Upgrade Grav CMS to version 1.8.0-beta.27 or later, as this version contains the fix for the vulnerability. Additionally, restrict admin panel access and permissions to only trusted users to prevent exploitation via malicious Twig expressions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-66297. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart