Read the docs
TI-2023-17088 Aliases CVE-2023-34253GHSA-j3v8-v77f-fvgm

Grav vulnerable to Server-side Template Injection (SSTI) via Denylist Bypass

Priority HIGH 73CWE-1336Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
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-1336.

Summary

Grav is a flat-file content management system. Prior to version 1.7.42, the denylist introduced in commit 9d6a2d to prevent dangerous functions from being executed via injection of malicious templates was insufficient and could be easily subverted in multiple ways -- (1) using unsafe functions that are not banned, (2) using capitalised callable names, and (3) using fully-qualified names for referencing callables. Consequently, a low privileged attacker with login access to Grav Admin panel and page creation/update permissions is able to inject malicious templates to obtain remote code execution. A patch in version 1.7.42 improves the denylist.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.02074 81st percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed grav (getgrav): 1.7.42getgrav/grav (Packagist): 1.7.42

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
getgravgravbefore 1.7.421.7.42Patch availableCNA
—getgrav/grav (Packagist)before 1.7.421.7.42Patch availableGHSA-j3v8-v77f-fvgm
  • grav Vendorgetgrav Affected before 1.7.42 Fixed in 1.7.42 Patch available CNA
  • getgrav/grav (Packagist) Vendor— Affected before 1.7.42 Fixed in 1.7.42 Patch available GHSA-j3v8-v77f-fvgm

CPE configurations NVD · 1

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

Remediation

  • Fix · CNA grav (getgrav) Fixed in 1.7.42
  • Fix · GHSA-j3v8-v77f-fvgm getgrav/grav (Packagist) Fixed in 1.7.42 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-34253
  2. 2026-10-03 Alias added: GHSA-j3v8-v77f-fvgm

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