CVE-2025-66297: getgrav grav · Improper Neutralization of Special Elements Used in a Template Engine
Affects getgrav gravSource CVE Database V5
Not known to be exploited · CVSS 7.4 High · fixed in 1.8.0 : patch getgrav grav soon.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.8.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 1 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubgetgrav/gravpkg:github/getgrav/gravOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade Grav CMS installations to version 1.8.0-beta.27 or later to remediate this vulnerability. Until patching is possible, restrict admin panel access strictly to trusted personnel and implement strong authentication controls, including multi-factor authentication. Disable Twig processing in page frontmatter if not required, or enforce strict input validation and sanitization on any user-supplied content that could be processed by Twig. Monitor scheduler API usage for anomalous activity and restrict its access where feasible. Conduct regular audits of user permissions to ensure least privilege principles are maintained. Employ web application firewalls (WAFs) with custom rules to detect and block suspicious Twig expression patterns. Maintain comprehensive logging and alerting on admin panel and scheduler API interactions to enable rapid detection of exploitation attempts. Finally, educate administrators on the risks of enabling advanced template features without proper safeguards.
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.