Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRegister look-alike domain matching origin prefix
-
DeliveryCraft request with forged Referer header
-
ExploitBypass unanchored prefix origin check
-
ExecutionInvoke Referer-protected action
-
ImpactUnauthorized state change
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Exploitation requires that the target route relies on the vulnerable Referer-based origin validation in Uri::referrer() or Pages::referrerRoute(), and that the attacker can present a Referer value beginning with the victim site's base origin - achievable either by directly setting the Referer header in a scripted request or by controlling a domain that starts with the victim origin (e.g. https://example.com.attacker.tld). The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates no authentication and no user interaction are required for the origin bypass itself. Limiting factors: the practical impact depends entirely on what functionality the Referer check gates (the bypass is a stepping stone, not direct code execution), and it only affects Grav versions before 2.0.16. |
| Impact | The supplied CVSS 4.0 vector (9.3, AV:N/AC:L/PR:N/UI:N with VC:H/VI:H/VA:H) rates this Critical, treating it as a fully unauthenticated network attack with high confidentiality, integrity and availability impact. That impact rating deserves scrutiny: the vulnerability itself is only an origin-check bypass - its real severity is bounded by what the Referer check was gating (typically CSRF-style state-changing actions), so full CIA:H is arguably aggressive unless the bypass reaches admin/state-changing functionality. There is no EPSS score, no POC, and no KEV listing provided, so the exploitation-probability signals are absent rather than reassuring; the SSVC exploitation status is best read as 'none/POC-unproven.' On balance this is a legitimate high-priority hardening fix - the bypass is low-complexity and needs no authentication - but the 9.3 headline likely overstates the standalone technical impact; teams should confirm which endpoints the Referer check protects before treating it as equivalent to unauthenticated RCE. Any organization running internet-facing Grav should still patch promptly given the trivial exploitation mechanics. |
| Exploit ScenarioDerived | An attacker registers a look-alike domain whose name begins with the victim's origin string, such as https://victim.example.com.attacker.tld, then issues a crafted request to the Grav site with that value in the Referer header (settable directly via a script or curl). The origin check's unanchored prefix match accepts the forged Referer as same-origin, allowing the attacker to invoke actions the Referer check was meant to protect. No public exploit code is currently identified, but the technique is straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Origin validation bypass in Grav CMS before 2.0.16 lets remote attackers defeat the Referer-based same-origin check used by the Uri::referrer() and Pages::referrerRoute() methods. Because the check uses an unanchored str_starts_with() prefix match without a trailing delimiter, a request bearing a Referer from an attacker-controlled look-alike domain (e.g. https://example.com.attacker.tld) is accepted as same-origin, undermining CSRF/origin protections on protected routes. No public exploit identified at time of analysis, and the flaw is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade Grav CMS to 2.0.16 or later, which anchors the origin comparison correctly. Follow the vendor advisory GHSA-9ccq-2jfg-qw33 (https://github.com/getgrav/grav/security/advisories/GHSA-9ccq-2jfg-qw33) for exact upgrade guidance. If immediate upgrade is not possible, compensating controls include enforcing a proper same-origin/CSRF token check at a reverse proxy or WAF (validate that the Referer host exactly equals the site host with a boundary, not a prefix, or require and verify an anti-CSRF token) and restricting access to state-changing admin routes to trusted networks or VPN - noting the trade-off that Referer-based filtering can break legitimate cross-linking and proxy-stripped Referers may cause false positives. Do not rely on the built-in Referer check on unpatched versions, as it is the vulnerable component.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Grav is an open-source, flat-file (database-less) PHP CMS. The defect is a classic CWE-346 Origin Validation Error in its request-origin logic: Uri::referrer() and Pages::referrerRoute() compare the incoming Referer header against the site base using str_starts_with($referrer, $base) with no trailing '/' or delimiter anchor. Prefix matching without a boundary means any origin string that merely begins with the trusted base - including a subdomain-style suffix on a different registrable domain such as 'https://example.com.attacker.tld' - satisfies the check. The affected component per CPE is cpe:2.3:a:getgrav:grav:*, i.e. the core Grav package rather than a plugin. Referer is trivially attacker-settable in direct (non-browser) requests, so the check offers no cryptographic or unforgeable assurance of origin.
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:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Referer is attacker-forgeable in direct requests so PR:N/UI:N/AC:L; impact is primarily integrity via bypassed origin/CSRF gating (I:H), with limited confidentiality and no availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Grav CMS before 2.0.16 contains an origin validation bypass in the Uri::referrer() and Pages::referrerRoute() methods, which validate the Referer header using an unanchored string prefix match (str_starts_with($referrer, $base)) with no trailing delimiter. An attacker who controls a domain that begins with the victim site's origin (e.g. https://example.com.attacker.tld) can send a request with such a Referer to be treated as same-origin, bypassing the Referer-based origin check.
Executive ViewAI
Grav CMS versions before 2.0.16 contain a critical origin validation bypass allowing remote attackers to forge requests from attacker-controlled look-alike domains (no public exploit identified at time of analysis). Organizations face unauthorized state-changing operations including content manipulation and configuration changes. This vulnerability requires immediate patching to prevent account takeover and data integrity compromise.
Apply vendor patch: Grav CMS 2.0.16 or later. If immediate patching is not feasible, implement Web Application Firewall rules enforcing strict Referer header validation with exact domain matching and trailing delimiters, and deploy same-site cookie restrictions to limit CSRF attack surface.
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.
Related Vulnerabilities in Grav CMS Access Control and Traversal Flaws
View all 9Server-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-65216
GHSA-9ccq-2jfg-qw33
NVD
CVE.org
EPSS
Exploit-DB