CVE-2026-72825 Grav API Plugin before 1.0.13 API-key scope cap bypass via ReportsController
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
The getgrav/grav-plugin-api plugin before 1.0.13 contains an API-key scope cap bypass in the POST /reports/twig-content/allowlist endpoint (ReportsController). The endpoint enforces requirePermission('api.config.write') followed by a bare isSuperAdmin() check instead of requireSuper(). Because isSuperAdmin() reads access.api.super directly and never consults api_key_scopes, a least-privilege API key scoped to api.config.write minted on a super account passes the gate, allowing an attacker to append attacker-chosen tokens to the security.twig_sandbox allowlist (persisted to user/config/security.yaml). Widening the allowlist turns any subsequent Twig-in-content render into an SSTI/RCE sink.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| getgrav grav-plugin-api | < 1.0.13 | 1.0.13 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| getgrav grav-plugin-api | < 1.0.13 | 1.0.13 |
References
- GitHub Security Advisory (GHSA-v5ph-7v92-wqm6) exploit vendor-advisory
- VulnCheck Advisory: Grav before 1.0.13 API-key scope cap bypass via ReportsController third-party-advisory
- ENISA EUVD EUVD-2026-58639 third-party-advisory