Skip to main content
VulnerabilityPublished

CVE-2025-66297: getgrav/grav · Grav vulnerable to Privilege Escalation and Authenticated Remote Code Execution via Twig Injection

Affects getgrav/gravSource GCVE Database

0
Compare
Authoritative record:CVE-2025-66297· High 7.4

Public exploit available · CVSS 7.4 High : upgrade to 1.8.0-beta.27 as a priority.

Data as of 21 Nov 2026, 03:47 UTC

CVSS 4.0 base score
7.4High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.8.0-beta.27
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CVSS exploit maturity: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CVSS vector, the Metasploit, Exploit-DB and nuclei-templates index as of 20 Nov 2026.

What to do

Upgrade getgrav/grav to 1.8.0-beta.27.

Affected software

ProductAffectedFixed in
Packagistgetgrav/gravAffected
  • <1.8.0-beta.27
Fixed in
  • 1.8.0-beta.27

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in Grav CMS version 1.8.0-beta.27 that fixes this vulnerability. Users should upgrade to this version or later to remediate the issue. Until patched, disable Twig processing in page frontmatter for users without full admin privileges to prevent exploitation.

Description

Grav CMS versions prior to 1.8.0-beta.27 are vulnerable to privilege escalation and authenticated remote code execution via Twig injection. A user with permissions to create or edit pages can enable Twig processing in page frontmatter and inject malicious Twig expressions. This allows escalation to admin or super admin privileges and execution of arbitrary system commands through the scheduler API. The Twig sandbox is not enforced, enabling full backend PHP object access. The vulnerability requires authenticated access with page editing rights and is fixed in version 1.8.0-beta.27.

References

Community reviews

Loading reviews…