Skip to main content
VulnerabilityPublished

CVE-2025-66297: getgrav grav · Template Injection

Affects getgrav gravSource CVE Database V5

0

Public exploit available · CVSS 7.4 High · fixed in 1.8.0 : patch getgrav grav as a priority.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 4.0 base score
7.4High
How severe the flaw is on the 0–10 CVSS scale.
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:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHubgetgrav/gravpkg:github/getgrav/gravOther threatsAffected
  • =1.8.0-beta.27
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.

References

Community reviews

Loading reviews…