Authentication Bypass Vulnerability in Grav by Getgrav
CVE-2026-130747
9.2CRITICAL
What is CVE-2026-130747?
Grav versions prior to 1.7.53.7 and 2.x before 2.2.18 are susceptible to an authentication bypass vulnerability. This flaw allows unauthorized users to create super-admin accounts by exploiting an issue with the UserCollection::count() method, which utilizes an unescaped glob() pattern. In certain installations with paths containing brackets or backslashes, this condition results in a zero account count, enabling attackers to submit requests to the /api/v1/auth/setup endpoint or employ the traditional admin registration form to create or overwrite administrator accounts. This potentially compromises the entire integrity and security of the application.
Affected Version(s)
grav 2.0.0 < 2.2.18
grav 0 < 1.7.53.7
grav 2.2.18
