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 CVSS 4.0 · 9.2 Critical EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor patch by upgrading to Grav 1.7.53.7 or 2.2.18 or later
  • If an upgrade is not feasible, place the site behind a WAF or firewall that blocks POST requests to /api/v1/auth/setup and to the classic admin registration form
  • Rewrite the installation directory to use only alphanumeric characters—remove brackets and backslashes, then restart the server to ensure the vulnerability condition is removed
  • Audit the system for any accounts created through the bypass, revoke them, and inspect logs for unintended activity

Generated by OpenCVE AI on November 18, 2026 at 19:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Grav before 1.7.53.7 and 2.x before 2.2.18 Authentication Bypass via First-Run Setup
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-155
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.2, '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'}

Weaknesses
  • CWE-155

    Improper Neutralization of Wildcards or Matching Symbols

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 18, 2026, 5:51 PM
Reserved
Nov 17, 2026, 3:40 PM
Status
Deferred
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 6:19 PM