Read the docs

Grav Privilege Escalation via YAML Merge Key

Priority MEDIUM 40CWE-138Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

Grav from 2.0.0 before 2.2.18 contains a privilege escalation flaw in which user managers can grant super-admin rights by nesting access maps under a YAML merge key. An attacker with admin.users.create or api.users.write can submit '<<' keys, for example through PATCH /api/v1/users/<self>, which bypasses super-grant filtering and gives full control of the site. The weakness is classified as CWE-138. CVSS 4.0 scores it 8.6 (HIGH).

Written with Claude Haiku 5.5 from the sources below · 2026-11-18

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0053 38th percentileScored 2026-11-30
Fix Fixed grav (getgrav): 2.2.18

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
getgravgrav2.0.0 to before 2.2.182.2.18Patch availableCNA
  • grav Vendorgetgrav Affected 2.0.0 to before 2.2.18 Fixed in 2.2.18 Patch available CNA

Remediation

Upgrade Grav to version 2.2.18 or later, which fixes the issue in the 2.0.0 to 2.2.18 range.

Written with Claude Haiku 5.5 from the sources below · 2026-11-18

  • Fix · CNA grav (getgrav) Fixed in 2.2.18

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    getgrav grav 2.2.18

    17 records Highest priority Priority MEDIUM 14 MEDIUM, 3 LOW

    Other records, highest priority first

    • TI-2026-93869 Twig injection in Grav via media metadata and file namesPriority MEDIUM 49
    • TI-2026-93867 Grav authorization bypass lets publishers overwrite protected pagesPriority MEDIUM 49
    • TI-2026-93883 Unbounded cache growth in Grav via the HTTP Host headerPriority MEDIUM 44

Timeline

  1. 2026-11-18 Threatist record created from CVE-2026-130737
  2. 2026-11-18 Alias added: GHSA-gchh-pq2q-8xrj
  3. 2026-11-21 CISA SSVC decision points changed

References

  • TI-2026-30893 Grav: Privilege Escalation via Missing Server-Side Validation of groups/access CVSS 3.1CRITICAL 9.4
  • TI-2025-28971 Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to… CVSS 3.1CRITICAL 9.8
  • TI-2021-04523 Unauthenticated Arbitrary YAML Write/Update leads to Code Execution CVSS 3.1CRITICAL 9.8
  • TI-2026-50940 Grav CMS before 2.0.16 Origin Validation Bypass via Referer CVSS 4.0CRITICAL 9.3
  • TI-2026-46446 Grav before 2.0.7 Remote Code Execution via Blueprint dynamicData CVSS 4.0CRITICAL 9.3
  • TI-2021-22428 GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2) CVSS 4.0CRITICAL 9.3
See all 253 →

Sources