CVE-2025-66298
highpriority · track · 30EPSS 0.004 · 31 %ileEUUSEPSS · scored 2026-10-23
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.6–7.7
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-8535-hvm8-2hmvGrav is vulnerable to Server-Side Template Injection (SSTI) via Forms2025-12-02ghsa · osvUS
### 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))}}   ### 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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-66298cnnvd
- https://getgrav.org/downloadsPatchcnnvd
- https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458cnnvd
- https://github.com/getgrav/grav/security/advisories/GHSA-8535-hvm8-2hmvcnnvd
- https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458enisa_euvd
- https://github.com/getgrav/grav/security/advisories/GHSA-8535-hvm8-2hmvenisa_euvd
- https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458Patchnvd
- https://github.com/getgrav/grav/security/advisories/GHSA-8535-hvm8-2hmvExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan