Description
Grav from 2.0.15 before 2.2.2 contains an allowlist bypass vulnerability that allows page editors to call arbitrary public static methods by renaming Flex form fields with replace-name@. Attackers with page-edit permission can smuggle data-*@ directives past the callable check to invoke Folder::delete, Folder::move, or Utils::download, deleting directories, overwriting files, or reading files.
Published: 2026-10-19
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary Code Execution
Action: Immediate Patch
AI Analysis

Impact

Grav includes a bypass of a public static method allowlist that lets users with page‑edit permissions rename Flex form fields using the replace-name@ syntax. This allows the attacker to invoke arbitrary public static methods, including Folder::delete, Folder::move, and Utils::download, which can delete directories, overwrite files, or read files, effectively enabling destructive or exfiltration actions. The weakness is related to CWE‑749, an allowlist bypass that permits execution of unintended code paths.

Affected Systems

The product affected is Grav, a flat‑file CMS, versions 2.0.15 through 2.2.1. Users running these releases are at risk if they have page editors who can alter form field names.

Risk and Exploitability

The CVSS score of 9.3 indicates high severity, and the exploitability is likely given that the attacker merely needs page‑editing capabilities, a privilege that many content collaborators possess. EPSS data is not available, and the vulnerability is not listed in CISA's KEV catalog, but the impact remains significant due to the potential for remote code execution.

Generated by OpenCVE AI on October 19, 2026 at 20:21 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Grav to version 2.2.2 or later which removes the allowlist bypass
  • If upgrading is delayed, disable the replace-name@ functionality in Flex Form configuration or remove any custom field type that supports it
  • Restrict page‑editor permissions so that only trusted personnel have the ability to modify form fields

Generated by OpenCVE AI on October 19, 2026 at 20:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Description Grav from 2.0.15 before 2.2.2 contains an allowlist bypass vulnerability that allows page editors to call arbitrary public static methods by renaming Flex form fields with replace-name@. Attackers with page-edit permission can smuggle data-*@ directives past the callable check to invoke Folder::delete, Folder::move, or Utils::download, deleting directories, overwriting files, or reading files.
Title Grav 2.0.15 before 2.2.2 Arbitrary Static Method Call via Flex Form replace-name@
First Time appeared Getgrav
Getgrav grav
Weaknesses CWE-749
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
References
Metrics cvssV3_1

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

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-19T19:10:56.708Z

Reserved: 2026-10-19T18:11:37.874Z

Link: CVE-2026-112780

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-19T20:17:55.473

Modified: 2026-10-19T20:17:55.587

Link: CVE-2026-112780

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T21:00:04Z

Weaknesses
  • CWE-749

    Exposed Dangerous Method or Function