7.7high
Grav is vulnerable to Server-Side Template Injection (SSTI) via Forms
- Severity
- 7.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-8535-hvm8-2hmv
Description
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, having a simple form on site can reveal the whole Grav configuration details (including plugin configuration details) by using the correct POST payload to exploit a Server-Side Template (SST) vulnerability. Sensitive information may be contained in the configuration details. This vulnerability is fixed in 1.8.0-beta.27.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| getgrav grav | < 1.8.0-beta.27, before 1.8.0, 1.8.0 | CVE List, NVD |
| getgrav/grav (Packagist) | before 1.8.0-beta.27 | GitHub Advisory Database |
All scores
| GitHub_M | 7.7high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, having a simple form on site can reveal the whole Grav configuration details (including plugin configuration details) by using the correct POST payload to exploit a Server-Side Template (SST) vulnerability. Sensitive information may be contained in the configuration details. This vulnerability is fixed in 1.8.0-beta.27.
GitHub Advisory Database
Summary
Having a simple form on site can reveal the whole Grav configuration details (including plugin configuration details) by using the correct POST payload. Sensitive information may be contained in the configuration details.
PoC
Create a simple form with two fields, 'registration-number' and 'hp'. Add a submit button and set the method to POST(screenshot attached below). Form name set to 'hero-form'. Send a POST request with the following payload and you will notice a response with a php array listing the whole Grav configuration details - including plugins(screenshot attached).
registration-number:d643aaaa
hp:vJyifp
form-name:hero-form
unique_form_id:{{var_dump(_context|slice(0,7))}}
Screenshot 2025-03-25 at 7 26 02 AM
Screenshot 2025-03-25 at 7 22 58 AM
Impact
Server-Side Template (SST) vulnerability. The vulnerability affects the latest Grav version as of 25th of Match 2025 (1.7.48) with all plugins installed (including forms plugin v.7.4.2) to their latest versions as well.
NVD (es)
Grav es una plataforma web basada en archivos. Versiones anteriores a 1.8.0-beta.27, tener un formulario simple en el sitio puede revelar todos los detalles de configuración de Grav (incluidos los detalles de configuración del plugin) mediante el uso de la carga útil POST correcta para explotar una vulnerabilidad de plantilla del lado del servidor (SST). Información sensible puede estar contenida en los detalles de configuración. Esta vulnerabilidad está corregida en 1.8.0-beta.27.
References
| https://github.com/getgrav/grav/security/advisories/GHSA-8535-hvm8-2hmv | exploit, third-party-advisory, web | |
| https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458 | patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-66298 | advisory | |
| https://github.com/getgrav/grav | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66298 changed 2025-12-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8535-hvm8-2hmv changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-66298 changed 2026-09-26 | Public domain |