Advisory record · GHSA-858q-77wx-hhx6

Grav vulnerable to Privilege Escalation and Authenticated Remote Code Execution via Twig Injection

CVSS 7.4 HighEPSS 0.0084 · 58th percentile

Published by the GitHub Advisory Database at 2 Dec 2025, 01:24 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
getgrav/gravPackagist<1.8.0-beta.271.8.0-beta.27
Identifiers
GHSA-858q-77wx-hhx6 · CVE-2025-66297 · PKSA-69s1-6gdk-gbrs
Weakness (CWE)
CWE-1336
Published
2 Dec 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Grav CMS (Packagist getgrav/grav) versions before 1.8.0-beta.27 are affected. An authenticated user who has admin panel access and permission to create or edit pages can enable Twig processing in page frontmatter and inject Twig expressions that call internal APIs, allowing them to escalate to super admin or run arbitrary system commands through the scheduler. Upgrade to 1.8.0-beta.27 or later, which is the listed fixed version.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.4 High 4.0 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 CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0084, the 58th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:02 UTC First seen by agentprime
  2. 31 Oct 2026, 14:02 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.