Skip to main content

Grav CMS EUVDEUVD-2026-128597

| CVE-2026-130747 CRITICAL
Improper Neutralization of Wildcards or Matching Symbols (CWE-155)
2026-11-18 VulnCheck GHSA-9wxr-j34r-qpfw
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Probe /api/v1/auth/setup on Grav site
  2. Delivery
    Bracketed path makes counter read zero accounts
  3. Exploit
    Setup endpoint allows unauthenticated account creation
  4. Execution
    POST creates super_admin or overwrites admin
  5. Impact
    Full 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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

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

grav 2.0.0 <2.2.18
grav 0 <1.7.53.7

Affected Packages

euvd grav fix: 1.7.53.7, 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 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

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

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/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
Present
Privileges Required
None
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
CRITICAL 9.2

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
popular open-source flat-file CMS, modest but real production footprint
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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