GHSA-858q-77wx-hhx6 · Severity: high · Ecosystem: composer — Grav vulnerable to Privilege Escalation and Authenticated Remote Code Execution via Twig Injection
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a user with admin panel access and permissions to create or edit pages in Grav CMS can enable Twig processing in the page frontmatter. By injecting malicious Twig expressions, the user can escalate their privileges to admin or execute arbitrary system commands via the scheduler API. This results in both Privilege Escalation (PE) and Remote Code Execution (RCE) vulnerabilities. This vulnerability is fixed in 1.8.0-beta.27.
Conclusion & alert: CVE-2025-66297 is rated High Exploit Risk (67.4/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.47%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-11 | 0.42% | 0.47% | +0.06% |
| 2 | 2026-04-29 | 0.52% | 0.42% | -0.10% |
| 3 | 2026-04-02 | — | 0.52% | — |
Full EPSS history (5 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.4 | 4.0 | HIGH |
|
— | — | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
GHSA-858q-77wx-hhx6 · Severity: high · Ecosystem: composer — Grav vulnerable to Privilege Escalation and Authenticated Remote Code Execution via Twig Injection
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| getgrav | grav | < 1.8.0 | cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta1:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta10:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta11:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta12:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta13:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta14:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta15:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta16:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta17:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta18:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta19:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta2:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta20:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta21:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta22:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta23:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta24:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta25:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta26:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta3:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta4:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta5:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta6:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta7:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta8:*:*:*:*:*:* |
| getgrav | grav | 1.8.0 | cpe:2.3:a:getgrav:grav:1.8.0:beta9:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458 | Patch |
| https://github.com/getgrav/grav/security/advisories/GHSA-858q-77wx-hhx6 | Exploit Third Party Advisory |