Grav CMS CVE-2026-42609
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege user
-
DeliveryNavigate to admin user creation form
-
ExploitSubmit POST with existing admin username
-
ExecutionTrigger insecure create-or-update logic
-
PersistOverwrite admin account YAML file
-
ImpactAdministrator 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
- Log in as a Super User (e.g., root0) and create a low-privileged user (e.g., adminuser).
- Assign adminuser the following specific permissions:
admin.login admin.users.list admin.users.read admin.users.create
- Log out and log back in as adminuser.
- Navigate to User Accounts -> Add.
- Fill in the form with the following details:
Username: root0 (The exact username of the Super User) Email: anything@grav.f Fullname: Fake Root0
- Click Save.
- Observe that the account is successfully "created".
- 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:
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_containsreturns a proper boolean.- The
instanceof FileStoragegate was dropped so the uniqueness check runs for anyFlexStorageInterfacebackend - 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:
system/src/Grav/Common/Flex/Types/Users/UserObject.php.tests/unit/Grav/Common/Security/UserOverwriteSecurityTest.php- 3 tests pinning the PoC, the@@-prefix edge case, and pass-through for free usernames.
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-rr73-568v-28f8
NVD
CVE.org
EPSS
Exploit-DB