Grav before 1.7.53.7 and 2.x before 2.2.18 Authentication Bypass via First-Run Setup
- State
- Published
- Severity
- 9.2 Critical
- Published
- Nov 18, 2026
- Updated
- Nov 18, 2026
- Reserved
- Nov 17, 2026
Description
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.
| Product | Versions |
|---|---|
| grav getgrav | 2.0.0 to before 2.2.18 Affected2.2.18 Not Affected |
| grav getgrav | before 1.7.53.7 Affected1.7.53.7 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.2 Critical | VulnCheck | |
| 3.1 | 8.1 High | VulnCheck |
Weaknesses
- CWE-155 Improper Neutralization of Wildcards or Matching Symbols
References
- GitHub Security Advisory (GHSA-gjx7-95hg-x969)Vendor Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.