CVE-2026-72824 Grav before 1.0.13 API Key Scope Bypass via PagesController
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
Description
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.13 contains an API key scope-cap bypass in PagesController::guardTwigContent(). The Twig-toggle check uses a bare isSuperAdmin() gate that does not consult api_key_scopes, so a least-privilege API key scoped only to api.pages.write and minted on a super account can enable process.twig on a page save even though admin.pages_twig is intentionally outside the api.pages scope. When security.twig_content.process_enabled=true and editor_enabled=false, this allows Twig-in-content to execute server-side, resulting in server-side template injection (SSTI) and remote code execution.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| getgrav/grav | < 1.0.13 | 1.0.13 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| getgrav/grav | < 1.0.13 | 1.0.13 |
References
- GitHub Security Advisory (GHSA-96xv-p87j-58mx) exploit vendor-advisory
- VulnCheck Advisory: Grav before 1.0.13 API Key Scope Bypass via PagesController third-party-advisory
- ENISA EUVD EUVD-2026-58638 third-party-advisory