The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-66298

CVE-2025-66298: Getgrav Grav Information Disclosure Flaw

CVE-2025-66298 is an information disclosure vulnerability in Getgrav Grav that exposes configuration details through Server-Side Template injection. This article covers technical details, affected versions, impact, and mitigation.

Updated: April 30, 2026

CVE-2025-66298 Overview

CVE-2025-66298 is a Server-Side Template Injection (SSTI) vulnerability in Grav CMS, a popular file-based web platform. This vulnerability allows unauthenticated attackers to exploit forms on affected Grav installations to disclose the complete server configuration, including sensitive plugin settings and system details. By crafting a malicious POST payload, attackers can leverage the template processing engine to extract configuration information that should not be accessible to external users.

Critical Impact

Unauthenticated attackers can extract complete Grav configuration details including plugin configurations, potentially revealing database credentials, API keys, and other sensitive system information through Server-Side Template Injection.

Affected Products

  • Grav CMS versions prior to 1.8.0-beta.27
  • Grav CMS 1.8.0-beta.1 through 1.8.0-beta.26
  • Any Grav installation with forms enabled that has not been patched

Discovery Timeline

  • December 1, 2025 - CVE-2025-66298 published to NVD
  • December 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-66298

Vulnerability Analysis

This vulnerability is classified under CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine). The flaw exists in how Grav CMS processes form submissions, allowing template directives to be injected and executed server-side. When a Grav site has any form functionality enabled, the form processing logic fails to properly sanitize user-supplied input before passing it to the Twig template engine.

The attack can be performed remotely over the network without requiring any authentication or user interaction. An attacker who successfully exploits this vulnerability gains read access to the complete Grav configuration, which may contain highly sensitive information such as database connection strings, SMTP credentials, API tokens for integrated services, and internal file paths that could facilitate further attacks.

Root Cause

The root cause of CVE-2025-66298 lies in insufficient input validation and sanitization within Grav's form processing mechanism. When form data is submitted via POST request, the application fails to properly neutralize template-specific syntax before the data is processed by the Twig templating engine. This allows attackers to inject Twig template directives that are subsequently executed in the server-side context, enabling access to internal configuration objects and variables.

Attack Vector

The attack is executed remotely over the network. An attacker identifies a Grav CMS installation with form functionality (such as contact forms, login forms, or registration forms) and crafts a specially formed POST request containing Twig template injection payloads. These payloads target Grav's internal configuration objects, causing the server to evaluate the injected template code and return configuration data in the response.

The exploitation does not require any prior authentication, making any publicly accessible Grav installation with forms a potential target. The attacker crafts POST parameters containing Twig variable references or expressions that, when processed by the template engine, output sensitive configuration values. The configuration dump may include plugin settings, system paths, credentials, and other sensitive deployment information.

Detection Methods for CVE-2025-66298

Indicators of Compromise

  • Unusual POST requests to form endpoints containing template syntax patterns such as {{, {%, or Twig-specific functions
  • Web server logs showing form submissions with payloads referencing config, system, or grav objects
  • Unexpected outbound data transfers or error responses containing JSON-like configuration structures
  • Access logs indicating repeated form submissions from single IP addresses with varying payloads

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block template injection patterns in POST requests
  • Monitor web server access logs for requests containing Twig template syntax ({{, }}, {%, %})
  • Deploy intrusion detection signatures for Server-Side Template Injection attack patterns
  • Review application logs for unusual form processing errors or exceptions related to template rendering

Monitoring Recommendations

  • Enable detailed logging for all form submissions and monitor for anomalous patterns
  • Set up alerts for POST requests containing known SSTI payload signatures
  • Monitor for configuration file access or disclosure in application responses
  • Implement rate limiting on form endpoints to slow potential exploitation attempts

How to Mitigate CVE-2025-66298

Immediate Actions Required

  • Upgrade Grav CMS to version 1.8.0-beta.27 or later immediately
  • Audit web server logs for evidence of exploitation attempts targeting form endpoints
  • Review and rotate any credentials or API keys stored in Grav configuration files
  • Consider temporarily disabling forms on production systems until patches are applied

Patch Information

The vulnerability has been addressed in Grav CMS version 1.8.0-beta.27. The fix is available via commit e37259527d in the official Grav repository. The patch implements proper input sanitization to prevent template injection through form submissions. For detailed information about the security fix, refer to the GitHub Security Advisory GHSA-8535.

Workarounds

  • Temporarily disable all form functionality on affected Grav installations until patching is possible
  • Implement WAF rules to filter POST requests containing Twig template syntax
  • Place affected Grav installations behind authentication to limit exposure
  • Consider network segmentation to restrict access to administrative and form endpoints
bash
# Example WAF rule pattern for ModSecurity to block SSTI attempts
SecRule ARGS "@rx \{\{.*\}\}|\{%.*%\}" \
    "id:1001,\
    phase:2,\
    deny,\
    status:403,\
    msg:'Potential SSTI Attack Detected',\
    log,\
    auditlog"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGetgrav Grav

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-1336
  • Technical References
  • GitHub Security Advisory GHSA-8535
  • Vendor Resources
  • GitHub Commit e37259527d
  • Related CVEs
  • CVE-2025-66304: Getgrav Grav Information Disclosure Flaw

  • CVE-2025-66306: Getgrav Grav Information Disclosure Flaw

  • CVE-2026-42608: Getgrav Grav Path Traversal Vulnerability

  • CVE-2026-42611: Getgrav Grav RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English