Skip to main content
Vulnerability Database/CVE-2026-114660

CVE-2026-114660: Grav CMS Privilege Escalation Vulnerability

CVE-2026-114660 is a privilege escalation vulnerability in Grav CMS affecting versions 2.0.0 to 2.2.4. Attackers can exploit improper access control to delete protected pages. This article covers technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114660 Overview

CVE-2026-114660 is an improper access control vulnerability [CWE-470] in Grav, an open-source flat-file content management system (CMS). The flaw resides in the FlexDirectory::dynamicFlexField() method and affects Grav versions 2.0.0 through 2.2.4. A page author can embed flex-*@ directives in page frontmatter that invoke arbitrary Flex object methods. When a higher-privileged user opens the affected page, the directives execute in that user's session. Attackers abuse this behavior to call setStorageKey() and delete() on protected pages, enabling destruction of content that neither account could remove on its own.

Critical Impact

Low-privileged page authors can trick editors into deleting protected pages through crafted frontmatter directives, causing content loss and integrity damage.

Affected Products

  • Grav CMS 2.0.0
  • Grav CMS versions after 2.0.0 and before 2.2.5
  • Deployments using the Flex Objects plugin for page management

Discovery Timeline

  • 2026-10-22 - CVE-2026-114660 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114660

Vulnerability Analysis

The vulnerability resides in the FlexDirectory::dynamicFlexField() method of Grav's Flex Objects subsystem. This method processes flex-*@ directives found in page frontmatter and dispatches them as method calls against Flex objects. The implementation does not validate which methods a page author is permitted to invoke. Any public method on the resolved Flex object becomes callable, including state-mutating operations such as setStorageKey() and delete().

The directive executes lazily at render time, inheriting the privileges of whichever user loads or previews the page. A low-privileged author stores the malicious directive, waits for an editor or administrator to open the page, and the destructive method call runs under that session.

This pattern maps to CWE-470: Use of Externally-Controlled Input to Select Classes or Code, commonly described as unsafe reflection. The attacker controls the method name reached through reflection, bypassing the role separation Grav enforces at the UI layer.

Root Cause

The root cause is missing allow-list enforcement in FlexDirectory::dynamicFlexField(). The function treats the directive suffix as an authorized method identifier rather than restricting invocation to a vetted set of read-only accessors.

Attack Vector

Exploitation requires an authenticated account with page edit rights and a victim user who opens the crafted page. The attacker injects flex-*@ directives referencing setStorageKey() and delete() into frontmatter. When a user with greater delete authority renders the page, the directives execute in that session and remove protected pages. See the GitHub Security Advisory GHSA-95jr-q4xh-27vr and the VulnCheck Advisory on Grav Vulnerability for additional detail.

Detection Methods for CVE-2026-114660

Indicators of Compromise

  • Page frontmatter containing flex-*@ directives that reference methods such as setStorageKey, delete, or other mutating Flex operations.
  • Unexpected page deletions logged against editor or administrator accounts shortly after those users previewed content authored by lower-privileged users.
  • File-system removal events in the user/pages/ directory tree that lack a corresponding admin UI delete action.

Detection Strategies

  • Scan Grav content repositories and Git history for frontmatter keys matching the flex-*@ pattern invoking non-read methods.
  • Correlate Grav audit log entries for page deletions with the identity of the authenticated session, flagging deletions that occurred during a page preview or render.
  • Monitor web server access logs for admin preview URLs targeting pages whose authors do not have delete rights.

Monitoring Recommendations

  • Alert on file deletions within Grav page directories outside scheduled maintenance windows.
  • Track Grav version strings across hosted instances and flag any deployment running >= 2.0.0, < 2.2.5.
  • Capture Grav administrative actions in a centralized logging pipeline to support post-incident reconstruction.

How to Mitigate CVE-2026-114660

Immediate Actions Required

  • Upgrade Grav to version 2.2.5 or later on all production and staging instances.
  • Audit existing page frontmatter for flex-*@ directives and remove any that call mutating methods such as delete or setStorageKey.
  • Restrict page edit permissions to trusted accounts until the upgrade is validated.

Patch Information

Grav 2.2.5 resolves CVE-2026-114660 by constraining FlexDirectory::dynamicFlexField() to permitted method invocations. Patch details are published in the GitHub Security Advisory GHSA-95jr-q4xh-27vr.

Workarounds

  • Temporarily revoke page edit rights for untrusted authors until the patched release is deployed.
  • Disable or uninstall the Flex Objects administrative preview workflow where feasible to prevent higher-privileged rendering of untrusted frontmatter.
  • Introduce code review for any page content contributed by lower-privileged authors before an editor opens it in the admin panel.
bash
# Verify installed Grav version and upgrade via the bundled CLI
bin/grav -v
bin/gpm selfupgrade
bin/grav -v   # confirm 2.2.5 or later

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.