CVE-2025-66299
HIGH 8.8CVSS 3.1Grav is Vulnerable to Security Sandbox Bypass with SSTI (Server Side Template Injection)
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (SSTI) that allows any authenticated user with editor permissions to execute arbitrary code on the remote server, bypassing the existing security sandbox. Since the security sandbox does not fully protect the Twig object, it is possible to interact with it (e.g., call methods, read/write attributes) through maliciously crafted Twig template directives injected into a web page. This allows an authenticated editor to add arbitrary functions to the Twig attribute system.twig.safe_filters, effectively bypassing the Grav CMS sandbox. This vulnerability is fixed in 1.8.0-beta.27.
- Published
- 1 Dec 2025
- Last modified
- 26 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1336CWE-94
- Also known as
- GHSA-gjc5-8cfh-653x
- Sources
- NVDJSONOSV GHSA-gjc5-8cfh-653xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* |
< 1.8.0 | 1.8.0 |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta1:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta10:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta11:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta12:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta13:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta14:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta15:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta16:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta17:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta18:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta19:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta2:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta20:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta21:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta22:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta23:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta24:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta25:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta26:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta3:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta4:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta5:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta6:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta7:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta8:*:*:*:*:*:* |
= 1.8.0 | |
| NVD | getgrav | gravcpe:2.3:a:getgrav:grav:1.8.0:beta9:*:*:*:*:*:* |
= 1.8.0 | |
| OSV | Packagist | getgrav/grav | < 1.8.0-beta.27 | 1.8.0-beta.27 |
References
- https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458 · Patch, WEB
- https://github.com/getgrav/grav/security/advisories/GHSA-gjc5-8cfh-653x · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-66299 · ADVISORY
- https://github.com/getgrav/grav · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 1 Dec 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 2 Dec 2025)