Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain scoped API key on super admin account
-
DeliveryTarget Grav instance with demo mode and writable resources
-
ExploitSend POST /api/v1/demo/reset
-
ExecutionrequireSuper() exits early, skipping requirePermission()
-
PersistScope restrictions bypassed
-
ImpactCapture demo baseline or force demo reset
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Two simultaneous non-default conditions must be satisfied. First, the attacker must hold a valid API key that was minted specifically on a super admin account - this implies either legitimate access to such a key, prior compromise of credentials, or insider threat. Second, the target Grav installation must have demo mode actively configured with writable resources enabled, which is a non-default setup not present in standard production deployments. Exploitation is strictly scoped to the DemoController endpoints (baseline() and reset(), e.g., POST /api/v1/demo/reset) and cannot be leveraged to access user data, file system resources outside demo scope, or administrative configuration. Grav instances without demo mode configured are completely unaffected regardless of API key configuration. |
| Impact | The provided CVSS 4.0 score of 5.3 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N) reflects network-accessible exploitation with low-privilege authentication and limited impact. However, AT:N (no attack requirements) understates the real-world constraint: demo mode with writable resources must be enabled, which is a non-default production configuration. Adjusting for this, the practical exploitable population is substantially smaller than the raw score suggests. No EPSS data was provided, and the vulnerability is not listed in CISA KEV, confirming no confirmed active exploitation. The integrity and availability impacts are confined to demo-engine operations with no confidentiality exposure and no subsequent-system impact. This is not a high-priority remediation for standard production Grav deployments without demo mode; operators running demo instances with writable resources should treat it as elevated priority. The combination of required super-account API key issuance plus non-default demo mode makes opportunistic mass exploitation implausible. |
| Exploit ScenarioDerived | An attacker who has been issued a scoped API key tied to a super admin account - or who has obtained such a key through credential theft or insider access - sends POST /api/v1/demo/reset to a Grav instance running in demo mode with writable resources. The requireSuper() guard confirms super admin status and returns without calling requirePermission(), so the key's scope restrictions are never evaluated and the reset executes. The demo environment is forced into a reset or its baseline state is captured, potentially disrupting demo workflows or exposing baseline configuration data depending on what the demo mode holds. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 14, 2026
Scope cap bypass in the Grav API plugin before 1.0.13 allows a holder of a scoped API key issued on a super admin account to call unauthorized DemoController operations. The private requireSuper() method exits early after confirming isSuperAdmin(), never reaching requirePermission() where api_key_scopes enforcement occurs, making the scope restriction on that key inert for the baseline() and reset() endpoints. Impact is bounded to demo-engine control - forced demo resets or baseline captures - and is conditional on demo mode being actively configured with writable resources. No public exploit is identified at time of analysis.
RemediationAI
Upgrade the Grav API plugin to version 1.0.13 or later, which corrects the authorization logic in requireSuper() so that requirePermission() is invoked before returning, restoring api_key_scopes enforcement for all callers. The fix is documented in the vendor advisory at https://github.com/getgrav/grav/security/advisories/GHSA-vq9w-jwj5-wfjg and the VulnCheck advisory at https://www.vulncheck.com/advisories/grav-before-api-key-scope-cap-bypass-via-democontroller. If an immediate upgrade is not feasible, disabling demo mode entirely removes the vulnerable attack surface with no impact on non-demo functionality; alternatively, configuring demo resources as read-only eliminates the writable-resource precondition though it may limit intended demo behavior. As an additional compensating control, revoke or regenerate any API keys issued on super admin accounts and audit which keys have been issued against such accounts to limit the key population that could be abused.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav is a flat-file CMS; the API plugin (getgrav/grav-plugin-api) exposes a REST interface secured by API keys with configurable scope restrictions via api_key_scopes. The root cause is CWE-862 (Missing Authorization): DemoController's requireSuper() performs an isSuperAdmin() check and returns on success before invoking requirePermission(), which is the sole enforcement point for key scope caps. The result is that the authorization logic short-circuits on the identity check without ever validating what the key is allowed to do. Affected product per CPE is cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*, covering all versions prior to the 1.0.13 fix. The specific vulnerable operations are baseline() and reset(), reachable via POST /api/v1/demo/reset and equivalent demo endpoints.
Know when Grav gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Non-default demo mode with writable resources is a condition outside attacker control, warranting AC:H; PR:L reflects required super-account API key; no confidentiality impact applies.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.13 contains an API-key scope cap bypass in DemoController. Its private requireSuper() method checks isSuperAdmin() and returns early before invoking requirePermission(), so the api_key_scopes cap (enforced only in requirePermission()) is skipped. As a result, any scoped API key minted on a super account can bypass its scope restrictions when calling the baseline() and reset() operations (e.g. POST /api/v1/demo/reset), allowing it to capture the demo baseline or force a demo reset. Impact is bounded to demo-engine control and is conditional on demo mode being configured with writable resources.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol
Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their
A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug
Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a
GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv
Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages
Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri
Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm
Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past
Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S
Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary
EUVD-2026-58637
GHSA-mfhq-ghcj-c36q
NVD
CVE.org
EPSS
Exploit-DB