Skip to content

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

CriticalCVSS 9.2 EPSS 0.30%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
getgrav/grav < 1.7.53.7; >= 2.0.0, < 2.2.18 1.7.53.7, 2.2.18 Fixed

Affected products

ProductAffected versionsFixed in
getgrav/grav >= 2.0.0, < 2.2.18 2.2.18
getgrav/grav < 1.7.53.7 1.7.53.7

References