CVE-2025-66299 json
Security Sandbox Bypass with SSTI (Server Side Template Injection) in the Grav CMS
published 2025-12-01 11 mo ago modified 2026-09-26 44 d ago also EUVD-2025-200111 , GHSA-gjc5-8cfh-653x
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist getgrav/grav 1.8.0-beta.27
- getgrav grav 1.8.0-beta.27
- getgrav grav_cms 1.8.0-beta.27
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 11 mo ago
Exploit prediction
0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/getgrav/grav/security/advisories/GHSA-gjc5-8cfh-653x referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | getgrav/grav | <1.8.0-beta.27 |
1.8.0-beta.27 |
Affected products
- getgrav grav
Classification
References
-
github.com
/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458
web, patch
-
github.com
/getgrav/grav/security/advisories/GHSA-gjc5-8cfh-653x
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-66299
advisory
-
github.com
/getgrav/grav
package
Sources
- CVE List CVE-2025-66299
- GitHub Advisory GHSA-gjc5-8cfh-653x
- NVD CVE-2025-66299
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.