CVE-2026-130737

Grav 2.0.0 before 2.2.18 Privilege Escalation via YAML Merge Key

Published Nov 18, 2026 CVSS 4.0 · 8.6 High EPSS n/a KEV · Not listed
Description
Grav from 2.0.0 before 2.2.18 contains a privilege escalation vulnerability that allows user managers to grant super-admin rights by nesting access maps under a YAML merge key. Attackers with admin.users.create or api.users.write can submit '<<' keys, for example via PATCH /api/v1/users/<self>, that bypass super-grant filtering and gain full site control.

Analysis

AI-generated

Technical impact

The flaw arises from the ability to use the YAML merge key '<<' within a user's access map. An attacker with the permissions to create or modify user records can embed a super‑admin grant under this merge key, bypassing the designated super‑grant whitelist. This allows a user manager to elevate an account to full site control without proper authorization.

Affected Systems

All Grav installations from version 2.0.0 up to but not including 2.2.18 are affected. The vulnerability is present in any deployment that allows the admin.users.create or api.users.write permissions to be granted to untrusted or non‑trusted accounts via the API or admin interface.

Risk and Exploitability

The CVSS base score of 8.6 indicates high severity. While EPSS data is not available, the exploit can be carried out remotely through the public API (for example, PATCH /api/v1/users/<self>) by any actor that possesses the required permissions. The vulnerability is not listed in CISA KEV, yet the potential to transform a normal user into a super‑admin makes it a priority for immediate remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grav to version 2.2.18 or later, which removes the merge‑key vulnerability.
  • Restrict the admin.users.create and api.users.write permissions to trusted, minimal‑privilege accounts only.
  • Audit configuration and API usage logs for unexpected use of YAML merge keys and disable or monitor such keys in the access map.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Grav from 2.0.0 before 2.2.18 contains a privilege escalation vulnerability that allows user managers to grant super-admin rights by nesting access maps under a YAML merge key. Attackers with admin.users.create or api.users.write can submit '<<' keys, for example via PATCH /api/v1/users/<self>, that bypass super-grant filtering and gain full site control.
Title Grav 2.0.0 before 2.2.18 Privilege Escalation via YAML Merge Key
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-138
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-138

    Improper Neutralization of Special Elements

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 18, 2026, 11:34 AM
Reserved
Nov 17, 2026, 3:40 PM
Status
Deferred
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 12:17 PM