---
id: CVE-2025-66297
title: Grav is a file-based Web platform
summary: >-
  Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a user with admin
  panel access and permissions to create or edit pages in Grav CMS can enable
  Twig processing in the page frontmatter. By injecting malicious Twig
  expressions, th…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-1336
vendor: getgrav
product: grav
affected:
  - grav < 1.8.0
  - grav = 1.8.0
patched:
  - grav 1.8.0
published: '2025-12-01'
updated: '2026-09-26'
sourceUpdated: '2026-09-26T00:10:00.127'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-66297'
references:
  - url: >-
      https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458
    label: security-advisories@github.com
  - url: 'https://github.com/getgrav/grav/security/advisories/GHSA-858q-77wx-hhx6'
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00783
epssPercentile: 0.54151
ingestedAt: '2026-09-26T00:22:39.987Z'
---

## Overview

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a user with admin panel access and permissions to create or edit pages in Grav CMS can enable Twig processing in the page frontmatter. By injecting malicious Twig expressions, the user can escalate their privileges to admin or execute arbitrary system commands via the scheduler API. This results in both Privilege Escalation (PE) and Remote Code Execution (RCE) vulnerabilities. This vulnerability is fixed in 1.8.0-beta.27.

## Affected

- `grav < 1.8.0`
- `grav = 1.8.0`

## Remediation

Upgrade past the affected range:

- `grav 1.8.0`
