Advisory record · GHSA-g8r4-p96j-xfxc

Grav's Twig processing allowing dangerous PHP functions by default

CVSS 8.4 HighCriticalEPSS 0.30 · 98th percentile

Critical, because:

  • CVSS score 8.4 (7.0 or more) and EPSS 0.30 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical

Published by the GitHub Advisory Database at 16 Apr 2021, 19:53 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
getgrav/gravPackagist<1.7.111.7.11
Identifiers
GHSA-g8r4-p96j-xfxc · CVE-2021-29440 · PKSA-zfmm-zsx8-rxf1
Weakness (CWE)
CWE-94
Published
16 Apr 2021
Updated
4 May 2026

Machine-written summary

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

Grav versions before 1.7.11 are vulnerable. An administrative user allowed to create or edit pages can enable Twig processing on static pages, and because Twig runs unsandboxed, this can be used to execute arbitrary code and elevate privileges on the instance. Upgrade to Grav 1.7.11, which blocks dangerous PHP functions in Twig templates; restricting access to the /admin path from untrusted sources reduces the likelihood of exploitation.

Written 3 Nov 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
8.4 High 3.1 CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.30, the 98th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:25 UTC First seen by agentprime
  2. 31 Oct 2026, 14:25 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.