Skip to main content
VulnerabilityPublished

CVE-2025-66294: getgrav grav · Code Injection

Affects getgrav gravSource CVE Database V5

0

Public exploit available (Metasploit) · CVSS 8.7 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
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
2.8% chance of exploitation in 30 days – higher than 86% 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

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.

    1 Metasploit module

  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), 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

  1. Upgrade Grav CMS installations immediately to version 1.8.0-beta.27 or later where the vulnerability is patched.
  2. Restrict editor permissions strictly to trusted users and review user roles regularly to minimize the risk of insider exploitation.
  3. Implement Web Application Firewalls (WAFs) with rules specifically designed to detect and block SSTI payloads and suspicious template syntax.
  4. Conduct regular security audits and code reviews focusing on template usage and input sanitization mechanisms.
  5. Monitor server logs and application behavior for unusual template rendering activities or command execution attempts.
  6. Employ network segmentation to isolate CMS servers from critical backend systems to limit lateral movement in case of compromise.
  7. Educate developers and administrators about secure template handling and the risks of SSTI vulnerabilities.
  8. Consider deploying runtime application self-protection (RASP) solutions that can detect and prevent code injection at runtime.
  9. Backup Grav CMS data and configurations regularly to enable rapid recovery if exploitation occurs.
  10. Stay informed about updates from the Grav project and security advisories for any further patches or mitigations.

Description

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Server-Side Template Injection (SSTI) vulnerability exists in Grav that allows authenticated attackers with editor permissions to execute arbitrary commands on the server and, under certain conditions, may also be exploited by unauthenticated attackers. This vulnerability stems from weak regex validation in the cleanDangerousTwig method. This vulnerability is fixed in 1.8.0-beta.27.

References

Community reviews

Loading reviews…