Skip to main content

Grav EUVDEUVD-2026-128814

| CVE-2026-130742 HIGH
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-11-18 VulnCheck GHSA-q88m-rfpx-2w96
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as list-only Flex user
  2. Delivery
    Send GET ?sort=delete to user-accounts
  3. Exploit
    delete() invoked, all accounts removed
  4. Execution
    Trigger reopened first-run setup
  5. Impact
    Create 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

grav 2.0.0 <2.2.18

Affected Packages

euvd grav fix: 2.2.18

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

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 13:02 EUVD
CVE Published
Nov 18, 2026 - 11:34 cve.org
HIGH 8.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche flat-file CMS; full chain also requires the optional API plugin
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

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

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

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

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy