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

Published Nov 18, 2026
·
Updated

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.

Affected Software

1 affected component
Grav Grav<1.7.53.7, <2.2.18

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.7.53.7
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.2.18

Event History

Nov 18, 2026
CVE Published
via MITRE·11:34 AM
Data Sourced
via MITRE·11:34 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which installations are exposed to unauthenticated account creation?

Affected Grav installations are exposed when their installation path contains brackets or a backslash. Under that condition, the user count can incorrectly return zero and make first-run setup appear available to anonymous visitors.

2

What does an attacker need to exploit this issue?

An attacker does not need credentials or user interaction. They need network access to the affected instance and can target POST /api/v1/auth/setup or the classic admin registration form.

3

What level of access can an attacker obtain?

An attacker can create or overwrite administrator accounts, including super-admin accounts. This can result in full compromise of confidentiality, integrity, and availability.

4

How can I determine whether my instance may already be affected?

Check whether the Grav installation path contains brackets or a backslash, and review administrator accounts for unexpected creation or modification. Also review requests to POST /api/v1/auth/setup and use of the classic admin registration form.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203