Read the docs
TI-2021-10153 Aliases CVE-2021-29440GHSA-g8r4-p96j-xfxc

Twig allowing dangerous PHP functions by default

Priority MEDIUM 60CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

Grav is a file based Web-platform. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. The issue was addressed in version 1.7.11.

Why it matters now

EPSS 0.29896 98th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed grav (getgrav): 1.7.11getgrav/grav (Packagist): 1.7.11

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
getgravgravbefore 1.7.111.7.11Patch availableCNA
—getgrav/grav (Packagist)before 1.7.111.7.11Patch availableGHSA-g8r4-p96j-xfxc
  • grav Vendorgetgrav Affected before 1.7.11 Fixed in 1.7.11 Patch available CNA
  • getgrav/grav (Packagist) Vendor— Affected before 1.7.11 Fixed in 1.7.11 Patch available GHSA-g8r4-p96j-xfxc

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*before 1.7.11Vulnerablegetgrav
  • cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* Versions before 1.7.11 Vulnerable ·getgrav

Remediation

  • Fix · CNA grav (getgrav) Fixed in 1.7.11
  • Fix · GHSA-g8r4-p96j-xfxc getgrav/grav (Packagist) Fixed in 1.7.11 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-29440
  2. 2026-10-03 Alias added: GHSA-g8r4-p96j-xfxc

References

  • TI-2025-28971 Cross Site Scripting vulnerability in grav v.1.7.48 and before allows an attacker to… CVSS 3.1CRITICAL 9.8
  • TI-2021-22428 GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2) CVSS 4.0CRITICAL 9.3
  • TI-2025-41064 In grav <1.7.49.5, a SSRF (Server-Side Request Forgery) vector may be triggered via Twig… CVSS 3.1CRITICAL 9.1
  • TI-2026-30888 Grav: Unauthenticated Path Traversal & Arbitrary File Write in FormFlash component. CVSS 4.0HIGH 8.8
  • TI-2025-40773 Security Sandbox Bypass with SSTI (Server Side Template Injection) in the Grav CMS CVSS 3.1HIGH 8.8
  • TI-2025-40768 Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass CVSS 4.0HIGH 8.7
See all 56 →

Sources