Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessProbe /api/v1/auth/setup on Grav site
-
DeliveryBracketed path makes counter read zero accounts
-
ExploitSetup endpoint allows unauthenticated account creation
-
ExecutionPOST creates super_admin or overwrites admin
-
ImpactFull administrative control of site
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Wildcard neutralization
|
| Exploitation Conditions | The install's absolute path must contain a bracket pair ('[' and ']', e.g. /var/www/grav[staging]) or a backslash; PHP's glob() then reads the brackets as a character class, so UserCollection::count() always returns zero and the first-run setup gate never closes. This path is chosen by the operator and cannot be influenced by the attacker - stock paths such as /var/www/html, public_html and httpdocs are not affected, which sharply limits the exposed population. Apart from the folder name everything is default configuration: no authentication, no user interaction, and the API plugin's POST /api/v1/auth/setup (Grav 2.x) or the classic admin registration form (Grav 1.7) is reachable anonymously. The main limiting factor is the rarity of bracket/backslash install paths; the backslash variant is confirmed only at the glob() level and was not reproduced against a served site. |
| Impact | Severity signals and exploitability signals pull in different directions here. The CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H, 9.2) correctly captures that a successful attack yields unauthenticated, remote, high confidentiality/integrity/availability impact - an anonymous visitor becomes super-admin - while the AT:P (attack requirement present) metric encodes the crucial gate: exploitation only works on installs whose absolute path contains a bracket pair or backslash, a condition the operator sets and the attacker cannot influence. The vuln.today Decision label is act_now, and the issue was reported by VulnCheck and discovered by Anthropic's OSS Scanner, so it should be treated as a current patching priority rather than deferred. However, the real-world attack surface is narrow: the GHSA advisory itself notes very few installs meet the bracket/backslash path condition and that stock paths (/var/www/html, public_html, httpdocs) are not exposed, which is why the vendor rated it High rather than Critical. No EPSS score, KEV listing, or PoC/exploit reference is present in the input, so this is best read as a high-severity-but-low-population issue: catastrophic for an affected install, but affecting a small fraction of deployments. The act_now label appears driven by the trivial exploitation and full-admin impact on affected installs, not by evidence of mass exploitation. |
| Exploit ScenarioDerived | An anonymous attacker sends GET /api/v1/auth/setup to a Grav 2.x site and is told first-run setup is still required (because the account counter mis-reads the bracketed install path as zero accounts); the attacker then sends POST /api/v1/auth/setup to create an 'intruder' account with super_admin:true, or to overwrite the existing admin account under a chosen password, receiving access and refresh tokens in the response. On Grav 1.7 with the classic admin plugin, the same counter gates the anonymous first-admin registration form, so the account is created through that form instead. No public exploit identified at time of analysis; the attack is remote and low-complexity on any install meeting the path condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Anonymous visitors can create a super-admin account, or overwrite the existing administrator account, on Grav CMS 2.x installs up to and including 2.2.17 and 1.7 installs up to and including 1.7.53.6 when the install's absolute path contains a bracket pair or a backslash. Because UserCollection::count() runs an unescaped glob() over the accounts folder, PHP treats '[staging]' as a character class, the count always reads zero, and the first-run setup gate never closes - letting an unauthenticated attacker reach POST /api/v1/auth/setup (Grav 2.x with the API plugin) or the classic admin registration form (Grav 1.7) and receive super_admin tokens. Exploitation requires a path the operator chose and the attacker cannot influence, so stock paths such as /var/www/html, public_html and httpdocs are not exposed; no public exploit code or confirmed in-the-wild activity was identified at time of analysis, though the vulnerability is rated 9.2 with a high-impact outcome and carries an act_now priority label.
RemediationAI
Vendor-released patch: upgrade Grav to 2.2.18 (2.x branch) or 1.7.53.7 (1.7 branch), where the account counter replaces the glob() pattern with a scandir() listing filtered by the same rules used for account lookup. On Grav 2 sites also update the API plugin to 1.1.6, which makes first-run setup answer 409 for an already-existing username so a wrong account count can no longer overwrite an account. If upgrading cannot happen immediately, the advisory's workarounds are: move the installation to a path containing no '[', ']' or backslash characters (this requires relocating the install and updating web-server document-root and config paths, and any hardcoded absolute paths), or block POST /api/v1/auth/setup at the web server once the first account exists (accepting that legitimate first-run setup through that endpoint will then also be blocked). Audit existing installs for unexpected super_admin accounts or an altered admin password, and check for GET/POST /api/v1/auth/setup traffic in logs. See https://github.com/getgrav/grav/security/advisories/GHSA-gjx7-95hg-x969 for details.
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 lives in Grav's account enumeration logic. UserCollection::count() builds a glob() pattern from the absolute path of the accounts folder without escaping it. PHP's glob() interprets square brackets as a character-class delimiter, so a directory literally named 'grav[staging]' produces a pattern that never matches the real folder and returns zero regardless of how many account YAML files exist; a backslash in the path similarly breaks the pattern at the glob() level (that variant was not reproduced against a served site). The API plugin's POST /api/v1/auth/setup is deliberately permitted without credentials while no accounts exist and uses this counter as its gate; it then loads the requested username via a normal lookup that still resolves existing accounts, so the same request both creates a new super_admin and can overwrite the existing 'admin' account. GET /api/v1/auth/setup also discloses that setup is still required. The weakness maps to CWE-155 (improper neutralization of wildcards or matching symbols) with an access-control consequence tracked as CWE-284; the unescaped-pattern code path dates to Grav 1.6.9 (2019). Only logins and account lookups, which do not use patterns, keep behaving normally, so operators see nothing unusual.
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:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remote, unauthenticated, no interaction (AV:N/PR:N/UI:N); AC:H because success depends on the attacker-uncontrolled bracket/backslash install-path condition; anonymous super-admin creation gives full C/I/A.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Grav before 1.7.53.7 and 2.x before 2.2.18 contains an authentication bypass vulnerability that allows anonymous visitors to create super-admin accounts because UserCollection::count() uses an unescaped glob() pattern. On installs whose path contains brackets or a backslash, the account count returns zero, so attackers can send requests to POST /api/v1/auth/setup or the classic admin registration form to create or overwrite administrator accounts.
Technical POC Analysis
Bug class: CWE-155, Improper Neutralization of Wildcards or Matching Symbols.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Grav CMS installations (versions 2.x up to 2.2.17 and 1.7 up to 1.7.53.6) are vulnerable to unauthenticated super-admin account creation or administrator account takeover when installed under a directory path containing square brackets or a backslash. This affects any organization hosting Grav in such paths, potentially granting attackers full control over the website and sensitive data, but only non-standard paths are exposed. Leadership should prioritize patching or path remediation because a compromised CMS could lead to data breaches, defacement, or further network intrusion.
No vendor-released patch identified at time of analysis. Interim mitigations: move installations to path names without square brackets or backslashes; block unauthenticated access to /api/v1/auth/setup and admin registration endpoints via WAF, reverse proxy rules, or network restrictions; regularly monitor for unauthorized admin account creation.
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-128597
GHSA-9wxr-j34r-qpfw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB