Description
Grav from 2.0.0 before 2.2.5 contains an improper access control vulnerability in FlexDirectory::dynamicFlexField() that allows page authors to call arbitrary Flex object methods via flex-*@ directives in page frontmatter. When a user with page edit rights opens the page, directives calling setStorageKey() and delete() run in their session, deleting protected pages neither account may delete.
Published: 2026-10-22
Score: 7 High
EPSS: n/a
KEV: No
Impact: Unauthorized Page Deletion
Action: Patch Immediately
AI Analysis

Impact

Grav versions 2.0.0 through 2.2.4 contain an improper access control flaw in the FlexDirectory::dynamicFlexField() routine that allows any page author with edit rights to execute arbitrary Flex object methods by inserting flex-*@ directives into a page’s frontmatter. This flaw enables the deletion of protected pages that authors normally cannot remove, resulting in loss of content and potential site disruption. The weakness is identified as CWE-470, improper use of code from untrusted input.

Affected Systems

The vulnerability affects the Grav content‑management system from the vendor getgrav, specifically all releases from 2.0.0 up to but not including 2.2.5. Any installation using these versions that permits page authors to edit frontmatter is susceptible.

Risk and Exploitability

The CVSS score of 7 indicates a high severity exposure. Although EPSS data is not provided, the lack of a KEV listing suggests no known public exploits yet, but the attack vector is relatively straightforward for legitimate page editors. An adversary who can get an editor access can trigger page deletion without requiring elevated system privileges.

Generated by OpenCVE AI on October 22, 2026 at 06:19 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Grav to version 2.2.5 or newer, which contains the patch for the improper access control issue.
  • Remove or cleanse all flex-*@ directives from page frontmatter to prevent accidental invocation of protected methods.
  • Restrict editing permissions so that only trusted users can modify frontmatter or consider disabling dynamic Flex field processing for sensitive pages.

Generated by OpenCVE AI on October 22, 2026 at 06:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 22 Oct 2026 02:00:00 +0000

Type Values Removed Values Added
Description Grav from 2.0.0 before 2.2.5 contains an improper access control vulnerability in FlexDirectory::dynamicFlexField() that allows page authors to call arbitrary Flex object methods via flex-*@ directives in page frontmatter. When a user with page edit rights opens the page, directives calling setStorageKey() and delete() run in their session, deleting protected pages neither account may delete.
Title Grav 2.0.0 before 2.2.5 Unauthorized Page Deletion via Flex Form Directives
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-470
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

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

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T01:43:44.845Z

Reserved: 2026-10-21T21:59:05.256Z

Link: CVE-2026-114660

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-22T02:16:58.077

Modified: 2026-10-22T02:16:58.207

Link: CVE-2026-114660

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T06:30:17Z

Weaknesses
  • CWE-470

    Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')