Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as list-only Flex user
-
DeliverySend GET ?sort=delete to user-accounts
-
Exploitdelete() invoked, all accounts removed
-
ExecutionTrigger reopened first-run setup
-
ImpactCreate attacker super-admin
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
|
| Exploitation Conditions | Requires an authenticated Grav 2.x account (versions 2.0.0 through 2.2.17) that has been granted at minimum api.access plus admin.users.list - i.e., list-only access to a Flex directory - which must be issued by a super admin. The primary chain also requires the Grav API plugin to be installed, exposing /api/v1/flex-objects/user-accounts; the attacker abuses the sort/filter resolver (ObjectExpressionVisitor::getObjectFieldValue) which calls a field named 'delete' as the bare method FlexObject::delete(), bypassing the permission check. Full site takeover additionally depends on the API plugin's first-run setup becoming reachable once user/accounts is emptied. A secondary path uses the Flex Objects shortcode with content-authored sort= values, but for user accounts that path only triggers when a logged-in super admin views the affected page on the front end. Limiting factors: authentication is mandatory (PR:L), the initial account grant must come from a super admin, and the complete super-admin-creation step requires the API plugin's setup flow. |
| Impact | This is a genuine, actionable priority rather than an inflated CVSS number. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VC:H/VI:H/VA:H, score 8.7) maps cleanly to the described mechanism: a network-reachable API endpoint, low attacker privileges (PR:L - an authenticated list-only account), no user interaction, and full compromise of the vulnerable system through mass account deletion followed by super-admin creation. PR:L is correct and important - exploitation is NOT unauthenticated; the attacker must first be granted an account with api.access plus admin.users.list, and that grant comes from a super admin, which meaningfully constrains the threat model to insiders or compromised low-privilege credentials. The vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with the absence of active-exploitation signals. No EPSS score was supplied and the CVE is not listed in CISA KEV, so there is no evidence of in-the-wild exploitation; the advisory describes a working reproducer on the demo site but the input does not mark it as publicly available exploit code. The CWE labeling is strong (CWE-470 unsafe reflection plus CWE-862 missing authorization from the GHSA). Net: credible, high-impact, low-complexity flaw with a verified patch, but gated behind authentication and a prior privilege grant - treat as a prompt-patch item for any Grav 2.x site running the API plugin, especially multi-user or hosted-tenant deployments. |
| Exploit ScenarioDerived | An authenticated Grav user who has been granted only list access to the user-accounts Flex directory sends two GET /api/v1/flex-objects/user-accounts?sort=delete requests, each deleting two account files, until every account (including super admins) is gone. With user/accounts now empty, the API plugin's first-run setup accepts an unauthenticated request and the attacker creates a fresh super-admin account, taking over the site. The advisory documents a full reproducer against the demo site, but the input does not confirm standalone public exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Grav 2.0.0 through 2.2.17 lets an account holding only list access to a Flex directory delete records outside that grant, because sort and filter field names are resolved as bare public method calls, so a request such as GET /api/v1/flex-objects/user-accounts?sort=delete invokes FlexObject::delete() without any permission check. On installations running the API plugin, two such requests can empty user/accounts, after which the reopened first-run setup accepts an unauthenticated request and creates a super admin. Exploitation requires an authenticated account (PR:L) whose list-only grant was issued by a super admin, and no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade to Grav 2.2.18, which resolves sort and filter fields as properties first and then through get*/is* getters so a field name is never called as a method of its own; page fields that exist only as read-only methods (route, url, rawRoute, path, modified, id, home, root, active, activeChild, permalink, filePath) are mapped explicitly so sorting and filtering by them keeps working, and the shortcode route is closed by the same core change. No vendor workaround is documented in the advisory, and no patched 1.7 release is listed. Because every path requires a login and a super-admin-issued list grant, interim risk reduction should focus on auditing and removing unnecessary Flex list grants - particularly accounts holding api.access plus admin.users.list - since the complete super-admin-creation step additionally depends on the API plugin's first-run setup becoming reachable once user/accounts is emptied, and the shortcode path for user accounts only fires when a logged-in super admin views the affected page on the front end. Advisory: https://github.com/getgrav/grav/security/advisories/GHSA-679v-ch4q-94qm.
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
The flaw is CWE-470 (use of externally controlled input to select classes or code, i.e. unsafe reflection) compounded by CWE-862 (missing authorization). In ObjectExpressionVisitor::getObjectFieldValue(), Grav resolves a sort or filter field name by trying the accessor prefixes '' (bare name), 'get' and 'is'; any field that is not a real property is therefore first called as a public method under its own name. FlexObject::delete() performs no permission check, so a directory grant that only permits listing is enough to reach a destructive method, and the user object's own refusal to let non-super users delete super accounts is never consulted because the object-level delete path is bypassed entirely. The request ends in a 500 after the first comparison, but by then both compared objects are already deleted, and the endpoint's filters[key][] parameter lets the caller choose which two objects are removed. Every comparison operator in the visitor uses the same resolver, including wrapped fields such as lower(delete). The Flex Objects shortcode also passes content-authored sort= values into the same resolver, giving a secondary path: a publisher with no Flex permission can delete two objects per page view from any Flex directory shown on the site, although for user accounts that path only deletes when a super admin who is logged in on the front end views the page. The bare-name accessor dates back to Grav 1.5.0-beta.2 and is present in 1.7, but the demonstrated chain runs on Grav 2 with the API plugin and no qualifying 1.7 reproduction was established, so the advisory covers 2.x only.
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:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network API reachable with only a low-privilege list-granted account (PR:L), no interaction; mass deletion gives I:H/A:H and the resulting super-admin takeover yields C:H, scope unchanged within the application.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Grav 2.0.0 before 2.2.18 resolves Flex sort and filter field names by first calling them as public methods, so a field named delete invokes FlexObject::delete() without any permission check. Authenticated users with only list access can send GET /api/v1/flex-objects/user-accounts?sort=delete requests to delete every account, then use the reopened API first-run setup to create a super admin.
Technical POC Analysis
CWE-470 (Use of Externally-Controlled Input to Select Classes or Code), with CWE-862 (Missing Authorization) as the consequence: the advisory lists both.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in Grav (versions 2.0.0 through 2.2.17) allows authenticated users with limited list access to delete arbitrary records, including user accounts, via a crafted API request. This could enable an attacker to erase all administrative accounts and then exploit the setup process to gain super admin rights, leading to full compromise of the CMS and potential data loss. The issue affects organizations using the API plugin and relying on Grav for critical web content.
No vendor-released patch identified at time of analysis. Interim mitigations: disable the API plugin if not required; restrict API access via network controls; implement input validation or WAF rules to block sort/filter parameters containing method names like 'delete'; enforce least privilege and review list-only grants; monitor for anomalous deletion requests.
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
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-128814
GHSA-q88m-rfpx-2w96
NVD
CVE.org
EPSS
Exploit-DB