Skip to main content

CVE-2025-66296 — Grav vulnerable to Privilege Escalation in...

HIGH

Grav vulnerable to Privilege Escalation in Grav Admin: Missing Username Uniqueness Check Allows Admin Account Takeover

Published December 2, 2025Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.64%). Schedule for your next planned update.

Does your project use an affected getgrav/grav version?

Paste your composer.lock to check it for CVE-2025-66296 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

Summary

A privilege escalation vulnerability exists in Grav’s Admin plugin due to the absence of username uniqueness validation when creating users. A user with the create user permission can create a new account using the same username as an existing administrator account, set a new password/email, and then log in as that administrator. This effectively allows privilege escalation from limited user-manager permissions to full administrator access.

Steps to Reproduce

  1. Make sure you have two accounts: an admin and a user with create user privilege
  2. In the user account, navigate to /grav-admin/admin/accounts/users and click "Add"
  3. Enter the name of the admin, complete registration and observe that the existing admin’s email is changed to the value you provided.
  4. Log out from user account log in as admin with new credentials

Impact

  1. Full admin takeover by any user with create user permission.
  2. Ability to change admin credentials, install/remove plugins, read or modify site data, and execute any action available to an admin.
  3. Severity: High/Critical.

PoC

https://github.com/user-attachments/assets/3ab0a7d6-5055-41be-9e0e-2bd6ca359b37

Advisory Timeline

  • First published December 2, 2025 (359 days ago).
  • Last revised September 10, 2026 — 282 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update getgrav/grav to 1.8.0-beta.27 or later
composer require "getgrav/grav:^1.8.0-beta.27"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Packagist (1).

PackageFixed In
getgrav/grav Packagist · Affected: 0.8.0, 0.9.0, 0.9.1, 0.9.10 (+313 more)1.8.0-beta.27

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2025-66296?
Grav vulnerable to Privilege Escalation in Grav Admin: Missing Username Uniqueness Check Allows Admin Account Takeover. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2025-66296?
CVE-2025-66296 affects getgrav/grav. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-66296 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.64%
EPSS percentile: 45.1

This is a below-median EPSS score — only 45.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-cjcp-qxvg-4rjm

Related CVEs

  • CVE-2026-42613
    CRITICAL

    Grav Vulnerable to Privilege Escalation via Missing Server-Side Validation of groups/access

  • CVE-2026-75828
    CRITICAL

    Grav: detectXss() misses an event-handler attribute after an unpaired quote in an unquoted attribute value, giving stored XSS

  • CVE-2025-66299
    HIGH

    Grav is Vulnerable to Security Sandbox Bypass with SSTI (Server Side Template Injection)

  • CVE-2025-66295
    HIGH

    Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Account Takeover / System Corruption

  • CVE-2026-42608
    HIGH

    Grav has Unauthenticated Path Traversal & Arbitrary File Write in its FormFlash component

  • CVE-2026-72695
    HIGH

    Grav: Path Traversal in MediaUploadTrait::deleteFile() Allows Arbitrary File Deletion

  • CVE-2025-66300
    HIGH

    Grav is vulnerable to Arbitrary File Read

  • CVE-2026-72819
    HIGH

    Grav CMS vulnerable to remote code execution via .zip file upload

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock