Read the docs
TI-2023-19330 Aliases CVE-2023-37897GHSA-9436-3gmp-4f53

Server-side Template Injection (SSTI) in grav

Priority HIGH 73CWE-393Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

Grav is a file-based Web-platform built in PHP. Grav is subject to a server side template injection (SSTI) vulnerability. The fix for another SSTI vulnerability using `|map`, `|filter` and `|reduce` twigs implemented in the commit `71bbed1` introduces bypass of the denylist due to incorrect return value from `isDangerousFunction()`, which allows to execute the payload prepending double backslash (`\\`). The `isDangerousFunction()` check in version 1.7.42 and onwards retuns `false` value instead of `true` when the `\` symbol is found in the `$name`. This vulnerability can be exploited if the attacker has access to: 1. an Administrator account, or 2. a non-administrator, user account that has Admin panel access and Create/Update page permissions. A fix for this vulnerability has been introduced in commit `b4c6210` and is included in release version `1.7.42.2`. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.02809 86th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed grav (getgrav): 1.7.42.2getgrav/grav (Packagist): 1.7.42.2

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.42.21.7.42.2Patch availableCNA
—getgrav/grav (Packagist)before 1.7.42.21.7.42.2Patch availableGHSA-9436-3gmp-4f53
  • grav Vendorgetgrav Affected before 1.7.42.2 Fixed in 1.7.42.2 Patch available CNA
  • getgrav/grav (Packagist) Vendor— Affected before 1.7.42.2 Fixed in 1.7.42.2 Patch available GHSA-9436-3gmp-4f53

CPE configurations NVD · 2

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

Remediation

  • Fix · CNA grav (getgrav) Fixed in 1.7.42.2
  • Fix · GHSA-9436-3gmp-4f53 getgrav/grav (Packagist) Fixed in 1.7.42.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-37897
  2. 2026-10-03 Alias added: GHSA-9436-3gmp-4f53

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