# CVE-2026-72824: Grav before 1.0.13 API Key Scope Bypass via PagesController

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-14T11:35:33.122Z
- Modified: 2026-08-31T20:38:54.340Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- getgrav grav: before 1.0.13 (not affected: 1.0.13)

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-96xv-p87j-58mx> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/grav-before-api-key-scope-bypass-via-pagescontroller> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-72824](https://www.cve.org/CVERecord?id=CVE-2026-72824), CVE Terms of Use, modified 2026-08-24
- NVD: [CVE-2026-72824](https://nvd.nist.gov/vuln/detail/CVE-2026-72824), Public domain, modified 2026-08-31

---

Page: https://cve.day/CVE-2026-72824 · Whole record: https://cve.day/CVE-2026-72824.json · Rebuilt by cve.day 2026-11-25T22:59:32.905Z
