CVE-2026-72824
HIGH
CVSS 8.7
Grav
Verified Advisory
API key scope-cap bypass enabling SSTI in Grav API plugin (CVE-2026-72824)
The Grav API plugin's `PagesController::guardTwigContent()` enforces the Twig-toggle check with a bare `isSuperAdmin()` gate that never consults `api_key_scopes`. A least-privilege API key scoped only to `api.pages.write` but minted on a super account bypasses the scope cap and can enable `process.twig` on page save, since `admin.pages_twig` is intentionally outside the `api.pages` scope hierarchy. When `security.twig_content.process_enabled=true` and `editor_enabled=false`, this results in server-side template injection (SSTI) and remote code execution (RCE).
Affected versions:
- <= 1.0.12
We recommend updating to: 1.0.13.
CVSS 9.3 · our assessment: act_now
Reference: https://github.com/getgrav/grav/security/advisories/GHSA-96xv-p87j-58mx
Details: https://vuln.today/cve/CVE-2026-72824
Verified by vuln.today against published advisories.
Affected versions
- – <= 1.0.12
Fixed in: 1.0.13
More advisories for Grav
- CVE-2026-72822 – Missing scope enforcement on disable2fa endpoint in getgrav/grav-plugin-api (CVE-2026-72822)
- CVE-2026-72826 – API key scope escalation in Grav CMS plugin API (CVE-2026-72826)
- CVE-2026-72829 – API-key scope cap bypass in Grav API plugin UsersController (CVE-2026-72829)
- CVE-2026-72830 – API-key scope cap bypass in Grav API plugin enabling RCE (CVE-2026-72830)