CVE-2026-130747 PUBLISHED

Grav before 1.7.53.7 and 2.x before 2.2.18 Authentication Bypass via First-Run Setup

Assigner: VulnCheck
Reserved: 17.11.2026 Published: 18.11.2026 Updated: 18.11.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 9.2

Product Status

Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 2.0.0 to 2.2.18 (excl.)
  • Version 2.2.18 is unaffected
Vendor getgrav
Product grav
Versions Default: unaffected
  • affected from 0 to 1.7.53.7 (excl.)
  • Version 1.7.53.7 is unaffected

References

Problem Types

  • Improper Neutralization of Wildcards or Matching Symbols CWE