CVE-2025-66294 json
Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass
published 2025-12-01 11 mo ago modified 2026-09-26 44 d ago also EUVD-2025-200081 , GHSA-662m-56v4-3r8f
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 1
- Metasploit
Summary
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Server-Side Template Injection (SSTI) vulnerability exists in Grav that allows authenticated attackers with editor permissions to execute arbitrary commands on the server and, under certain conditions, may also be exploited by unauthenticated attackers. This vulnerability stems from weak regex validation in the cleanDangerousTwig method. 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
Timeline
- First public exploit (Metasploit exploit/multi/http/grav_twig_ssti_sandbox_bypass_rce)
- Published
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 11 mo ago
Exploit prediction
3.02% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/multi/http/grav_twig_ssti_sandbox_bypass_rce Grav CMS Twig SSTI Authenticated Sandbox Bypass RCE metasploit exploit, excellent rank, 2025-12-01
- github.com https://github.com/getgrav/grav/security/advisories/GHSA-662m-56v4-3r8f referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| CNA | 4.0 | 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 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-662m-56v4-3r8f
web, exploit, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-66294
advisory
-
github.com
/getgrav/grav
package
Sources
- CVE List CVE-2025-66294
- GitHub Advisory GHSA-662m-56v4-3r8f
- NVD CVE-2025-66294
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.