{"id":"CVE-2026-72825","state":"PUBLISHED","title":"Grav API Plugin before 1.0.13 API-key scope cap bypass via ReportsController","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.","publishedAt":"2026-08-14T11:35:33.800Z","updatedAt":"2026-10-29T21:16:49.910Z","severity":{"score":7.2,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["getgrav grav-plugin-api"],"affected":[{"vendor":"getgrav","product":"grav-plugin-api","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.0.13","versionType":"semver"},{"version":"1.0.13","status":"unaffected","versionType":"semver"}],"repo":"https://github.com/getgrav/grav-plugin-api"}],"references":["https://github.com/getgrav/grav/security/advisories/GHSA-v5ph-7v92-wqm6","https://www.vulncheck.com/advisories/grav-before-api-key-scope-cap-bypass-via-reportscontroller"],"weaknesses":["CWE-862"],"ingestedAt":"2026-10-29T23:12:04.845Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/72xxx/CVE-2026-72825.json","commit":"dc7676b3f67d6707e4927968546e7e0125ff7ec7","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-72825","state":"PUBLISHED","datePublished":"2026-08-14T11:35:33.800Z","dateUpdated":"2026-10-29T21:16:49.910Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-08-10T15:12:59.509Z"},"containers":{"cna":{"title":"Grav API Plugin before 1.0.13 API-key scope cap bypass via ReportsController","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"getgrav","product":"grav-plugin-api","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.0.13","versionType":"semver"},{"version":"1.0.13","status":"unaffected","versionType":"semver"}],"repo":"https://github.com/getgrav/grav-plugin-api"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-v5ph-7v92-wqm6","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-v5ph-7v92-wqm6)"},{"url":"https://www.vulncheck.com/advisories/grav-before-api-key-scope-cap-bypass-via-reportscontroller","name":"VulnCheck Advisory: Grav before 1.0.13 API-key scope cap bypass via ReportsController","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.2,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"HIGH","availabilityImpact":"LOW","baseScore":7.6,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-862","lang":"en","description":"Missing Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-29T21:16:49.910Z"},"datePublic":"2026-07-26T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:getgrav:grav-plugin-api:*:*:*:*:*:*:*:*","versionEndExcluding":"1.0.13"}]}]}],"credits":[{"lang":"en","value":"manus-use","type":"reporter"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-v5ph-7v92-wqm6","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-14T17:59:29.905039Z","id":"CVE-2026-72825","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-14T17:59:38.432Z"}}]}}}