8.6high
Grav ihas Broken Access Control which allows an Editor to modify the page's YAML Frontmatter to alter form processing actions
- Severity
- 8.6high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 1.17% (higher than 67% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-v8x2-fjv7-8hjh
Description
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, due to improper authorization checks when modifying critical fields on a POST request to /admin/pages/{page_name}, an editor with only permissions to change basic content on the form is now able to change the functioning of the form through modifying the content of the data[_json][header][form] which is the YAML frontmatter which includes the process section which dictates what happens after a user submits the form which include some important actions that could lead to further vulnerabilities. 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 | 8.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 9.6critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.
What each source says
CVE List
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, due to improper authorization checks when modifying critical fields on a POST request to /admin/pages/{page_name}, an editor with only permissions to change basic content on the form is now able to change the functioning of the form through modifying the content of the data[_json][header][form] which is the YAML frontmatter which includes the process section which dictates what happens after a user submits the form which include some important actions that could lead to further vulnerabilities. This vulnerability is fixed in 1.8.0-beta.27.
GitHub Advisory Database
Summary
Due to a broken access control vulnerability in the /admin/pages/{page_name} endpoint, an editor ( user with full permissions to pages ) can change the functionality of a form after submission.
Details
Due to improper authorization checks when modifying critical fields on a POST request to /admin/pages/{page_name}, an editor with only permissions to change basic content on the form is now able to change the functioning of the form through modifying the content of the data[_json][header][form] which is the YAML frontmatter which includes the process section which dictates what happens after a user submits the form which include some important actions that could lead to further vulnerabilities.
PoC
-
Have Admin and Form plugins installed
-
Connect to panel as admin, create user and give him permission for pages all
-
Now connect as that user and notice you cant edit any process field in the panel
-
Change anything in the content of the form and save
-
Intercept the request: image
-
Now modify the field `data[_json][header][form] with the following payload URL-encoded not like this:
{"name":"ssti-test 2","fields":{"name":{"type":"text","label":"Name","required":true}},"buttons":{"submit":{"type":"submit","value":"Submit"}},"process":[{"message":"{{ evaluate_twig(form.value('name')) }}"}]}
- Change the field and forward it: image
Request goes through and changes have been made to the form. image
Impact
- Attacker can modify submission logic of the form which leads to changing redirect value, email sending, changing template, breaking out of the Twig sandbox potentially executing code...
Fix recommendation
- Implement proper authorization checks to such requests especially when it contains fields user shouldn't be able to modify based on his role.
NVD (es)
Grav es una plataforma web basada en archivos. Versiones anteriores a 1.8.0-beta.27, debido a comprobaciones de autorización inadecuadas al modificar campos críticos en una solicitud POST a /admin/pages/{page_name}, un editor con permisos únicamente para cambiar contenido básico en el formulario ahora puede cambiar el funcionamiento del formulario mediante la modificación del contenido de data[_json][header][form], que es el frontmatter YAML que incluye la sección de proceso que dicta lo que sucede después de que un usuario envía el formulario, que incluye algunas acciones importantes que podrían conducir a vulnerabilidades adicionales. Esta vulnerabilidad está corregida en 1.8.0-beta.27.
References
| https://github.com/getgrav/grav/security/advisories/GHSA-v8x2-fjv7-8hjh | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-66301 | advisory | |
| https://github.com/getgrav/grav | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66301 changed 2025-12-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v8x2-fjv7-8hjh changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-66301 changed 2026-09-26 | Public domain |