CVE-2026-130738: Grav 2.0.0 before 2.2.18 Privilege Escalation via User Group Enabled Toggle
Grav from 2.0.0 before 2.2.18 contains a privilege escalation vulnerability that allows user managers with admin.users.update to take over super admin accounts by disabling the super-granting group. Attackers can set the group's enabled field to false via the Flex user-groups form, then reset the victim's password through the user-accounts form to gain super admin access.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.2.18
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An authenticated user manager who has the admin.users.update permission can exploit it. The attacker uses the Flex user-groups form to disable the group that grants super-admin privileges, then uses the user-accounts form to reset a super admin's password.
Are default installations affected?
The provided information does not establish whether the required admin.users.update permission is granted by default. Exposure depends on whether a user manager has that permission and can access the relevant Flex forms.
What versions should be remediated?
Grav versions from 2.0.0 before 2.2.18 are affected. Updating to 2.2.18 or later removes the affected version range.
What can be done if an update cannot be applied immediately?
Restrict admin.users.update to only fully trusted administrators and limit access to the Flex user-groups and user-accounts forms. Review changes to user-group enabled settings and super-admin account password resets for signs of exploitation.