Technical impact
Grav versions before 1.7.53.7 and 2.2.18 contain an authentication bypass that lets anonymous visitors create or overwrite super‑admin accounts. The flaw stems from UserCollection::count() using an unescaped glob() pattern; when the installation path contains brackets or a backslash, the count incorrectly reports zero. Attackers can then POST to /api/v1/auth/setup or use the classic admin registration form to establish a new administrator account. This grants the attacker full control over the site, enabling modification, data exfiltration, and further compromise.
Affected Systems
Vendors: getgrav:grav. Products: Grav CMS. Versions affected are all releases prior to 1.7.53.7 and 2.x prior to 2.2.18. The vulnerability is exploitable on any installation whose filesystem path includes brackets or a backslash—common examples include directories named "[test]" or those with a Windows‑style backslash in the path.
Risk and Exploitability
The CVSS score of 9.2 classifies this as a critical vulnerability. EPSS is not available and the issue is not listed in CISA KEV, but the potential impact is high. Attackers can reach the flaw remotely over HTTP by sending crafted POST requests to the authentication setup or registration endpoints; no authentication is required. Because the flaw depends on the installation path, misconfigured or legacy deployments are the most likely targets.