Skip to main content

Grav CMS CVE-2026-42609

HIGH
Improper Privilege Management (CWE-269)
2026-05-05 https://github.com/getgrav/grav GHSA-rr73-568v-28f8
8.1
CVSS 3.1 · Vendor: https://github.com/getgrav/grav
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege user
  2. Delivery
    Navigate to admin user creation form
  3. Exploit
    Submit POST with existing admin username
  4. Execution
    Trigger insecure create-or-update logic
  5. Persist
    Overwrite admin account YAML file
  6. Impact
    Administrator locked out (DoS)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to hold a valid Grav CMS account with the admin.users.create permission explicitly granted. This permission is not assigned to normal users by default; a super-admin must have previously delegated user-creation rights to the attacker's role. Attack targets Grav installations where permission delegation follows a multi-tier model (e.g., junior admins can create users but lack super-admin rights). Default single-admin deployments where only the root account holds admin.users.create are not exploitable unless the admin has manually created and misconfigured lower-privilege accounts. The vulnerability affects all Flex storage backends (file, database, custom FlexStorageInterface implementations) in vulnerable versions. Attack vector is network-accessible admin panel (AV:N) with low complexity (AC:L)-no race conditions, no cryptographic weaknesses, just a single POST request. No user interaction required beyond the attacker's own authenticated session (UI:N). Limiting factor: attacker must already be authenticated with a specific non-default permission grant, making this primarily an insider-threat or shared-hosting scenario rather than internet-wide exploitation risk.

Impact

CVSS 8.1 (High) reflects network attack vector, low complexity, low privileges required, and high integrity/availability impact with no confidentiality compromise. EPSS score not provided in input data. No CISA KEV listing, but a working video PoC is published in the vendor's own security advisory (GHSA-rr73-568v-28f8), meaning exploit code is publicly available. Real-world risk depends heavily on deployment configuration: only Grav installations that delegate admin.users.create permission to non-admin roles are exploitable-environments following least-privilege best practices (not granting user-creation rights to low-privilege accounts) are immune. Attack complexity is low (single HTTP POST to admin panel), but the attacker must already hold valid credentials and the specific admin.users.create permission, limiting the attack surface. The impact is severe where exploitable: complete administrative lockout constitutes availability impact (DoS) and integrity impact (unauthorized permission modification). SSVC framework: exploitation is publicly available (PoC confirmed), automatable (simple HTTP request), technical impact is total (admin lockout), but preconditions are non-default (requires misconfigured permission delegation). This is a real priority for multi-tenant Grav installations or shared hosting where non-admin users have create-user rights, but lower risk for single-admin deployments. No conflicting data across sources-GitHub advisory, commit messages, and CVE description align.

Exploit ScenarioDerived

An authenticated low-privilege user with admin.users.create permission (e.g., a junior editor in a multi-tenant CMS) logs into the Grav Admin Panel and navigates to User Accounts → Add. They fill the username field with 'root0' (the super-admin's username) and arbitrary values for email/fullname, then click Save. The vulnerable create-or-update logic overwrites /user/accounts/root0.yaml with the attacker's low-privilege permission set, replacing the super-admin's access grants. The legitimate administrator is locked out on next login, unable to access admin functions or restore the account without filesystem-level intervention. The attacker gains no elevated privileges themselves (cannot assign admin.super to their input due to existing permission-escalation guards) but achieves denial-of-service and effectively disables platform governance. Video PoC demonstrates full attack chain from login to admin lockout (https://github.com/user-attachments/assets/047cb44e-0279-402b-b4fb-12bf5d427a5e).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 05, 2026

Grav CMS Admin Panel allows authenticated users with only user-creation permissions to overwrite administrator accounts by submitting the admin's username when creating a new user. The flawed create-or-update logic replaces the existing super-admin account metadata with attacker-supplied low-privilege data, locking the legitimate administrator out and causing complete loss of management control. Vendor-released patch: fixed in 2.0.0-beta.2 (commit d904efc33). Publicly available exploit code exists (video PoC published by Grav maintainers). EPSS data not provided, but the low attack complexity and confirmed PoC make exploitation straightforward for any low-privileged user with create-user rights.

RemediationAI

Upgrade to Grav CMS 2.0.0-beta.2 or later, which ships commit d904efc33 fixing the username collision logic. Patch commits: d904efc33 (primary fix), 5a12f9be8 and c66dfeb5f (related hardening). Vendor advisory and patch details at https://github.com/getgrav/grav/security/advisories/GHSA-rr73-568v-28f8. If immediate upgrade is not feasible, revoke admin.users.create permission from all non-admin accounts as a compensating control-restrict user creation to super-admin roles only. This eliminates the attack vector but reduces operational flexibility in multi-admin environments; manual user provisioning by super-admins becomes required. Additional compensating control: implement file-integrity monitoring (FIM) on user/accounts/*.yaml files and alert on modifications by low-privilege sessions-this provides detection but does not prevent exploitation. Monitor admin panel access logs for user-creation events with duplicate usernames (HTTP 200 responses to POST /admin/user requests where username matches existing account). Note that file permissions alone are insufficient as the PHP process legitimately writes these files; the logic flaw must be fixed at the code layer. Three unit tests added in tests/unit/Grav/Common/Security/UserOverwriteSecurityTest.php validate the fix and can be run to confirm patch application.

Affected Packages

composer getgrav/grav fix: 2.0.0-beta.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Grav is a PHP-based flat-file content management system. The vulnerability resides in the Flex user management module (UserObject::save in system/src/Grav/Common/Flex/Types/Users/UserObject.php). When processing user creation requests, the application incorrectly implements create-or-update semantics without validating username uniqueness against existing accounts. The original guard (commit 19c2f8da7, November 2025) checked for transient keys using strpos($key, '@@'), which returns 0 (falsy in boolean context) when the marker appears at position zero-thereby silently bypassing the check. The fix switches to str_contains for correct boolean semantics and removes the instanceof FileStorage gate so the uniqueness check applies to all FlexStorageInterface backends, not just YAML-file storage. This is a CWE-269 (Improper Privilege Management) vulnerability: the system grants an authenticated low-privileged user the ability to de-escalate higher-privileged accounts by exploiting weak business logic rather than gaining privileges themselves.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/getgrav/grav) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Primary rating from Vendor (https://github.com/getgrav/grav) · only source for this CVE.

CVSS VectorVendor: https://github.com/getgrav/grav

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

DescriptionCVE.org

Summary

A business logic vulnerability in the Grav Admin Panel allows a low-privileged user (with only user creation permissions) to overwrite existing accounts, including the primary administrator. By creating a new user with a username that already exists, the system updates the existing account's metadata and permissions instead of rejecting the request. This leads to a Denial of Service (DoS) on administrative functions and Privilege De-escalation of the root account.

Details

The vulnerability stems from an insecure "Create or Update" logic within the user management module. When the admin-addon handles a user creation request, it does not strictly validate whether the username is already taken by a higher-privileged account. Instead of returning a "409 Conflict" or a validation error, the application logic proceeds to overwrite the existing user configuration file (e.g., user/accounts/root0.yaml) with the new, lower-privileged data provided by the attacker. Because the attacker cannot assign higher permissions to themselves (due to existing fixes), the result is that the targeted account (the original Admin/Root) has its access levels wiped or replaced by the attacker's input, effectively locking the real administrator out of the system.

PoC

  1. Log in as a Super User (e.g., root0) and create a low-privileged user (e.g., adminuser).
  2. Assign adminuser the following specific permissions:

admin.login admin.users.list admin.users.read admin.users.create

  1. Log out and log back in as adminuser.
  2. Navigate to User Accounts -> Add.
  3. Fill in the form with the following details:

Username: root0 (The exact username of the Super User) Email: anything@grav.f Fullname: Fake Root0

  1. Click Save.
  2. Observe that the account is successfully "created".
  3. The original administrative permissions are gone, and the account is now restricted.
PoC video

https://github.com/user-attachments/assets/047cb44e-0279-402b-b4fb-12bf5d427a5e

Impact

This is a Privilege De-escalation and Account Disruption vulnerability. Who is impacted: Any Grav installation where a non-admin user is granted permission to create other users. Consequence: An attacker can effectively disable all administrative accounts on the platform, leading to a complete loss of management control over the CMS.

---

Maintainer note - fix applied (2026-04-24)

Fixed in Grav core on the 2.0 branch: commit d904efc33 - will ship in 2.0.0-beta.2.

What changed: UserObject::save already had a uniqueness guard (commit 19c2f8da7, November 2025) that blocks the PoC. This release tightens that guard:

  1. strpos($key, '@@') → str_contains($key, '@@'). The previous form was falsy when the transient-key marker was at position 0 (e.g. @@hash), silently bypassing the check. str_contains returns a proper boolean.
  2. The instanceof FileStorage gate was dropped so the uniqueness check runs for any FlexStorageInterface backend - not just the default file-per-user YAML one.

A low-privileged user with admin.users.create can no longer disrupt a super-admin account by submitting that admin's username through the "add user" form.

Files:

Executive ViewAI

Why It Matters

Grav CMS versions prior to 2.0.0-beta.2 contain a privilege escalation flaw that allows any authenticated user with basic user-creation permissions to permanently compromise administrator accounts by overwriting them during account creation. This vulnerability strips legitimate administrators of access to the CMS, enabling full takeover of website content and configuration management by low-privileged attackers.

Business Impact: High
Compensating Controls

Apply vendor patch (upgrade to Grav CMS 2.0.0-beta.2 or later). If immediate patching is not possible: (1) Revoke user-creation permissions for all non-administrative accounts; (2) restrict CMS admin panel access by IP whitelist; (3) implement daily automated backups of administrator account configurations to enable rapid restoration if compromise is detected.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:composer/getgrav_grav

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy