CVE-2025-66299

HIGH CVSS 3.1: 8.8 EPSS 0.65%
Updated Sep 26, 2026
Getgrav
Parameter Value
CVSS 8.8 (HIGH)
Affected Versions before 1.8.0
Fixed In 1.8.0
Type CWE-1336 (Template Injection), CWE-94 (Code Injection)
Vendor Getgrav
Public PoC No

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (SSTI) that allows any authenticated user with editor permissions to execute arbitrary code on the remote server, bypassing the existing security sandbox. Since the security sandbox does not fully protect the Twig object, it is possible to interact with it (e.g., call methods, read/write attributes) through maliciously crafted Twig template directives injected into a web page.

This allows an authenticated editor to add arbitrary functions to the Twig attribute system.twig.safe_filters, effectively bypassing the Grav CMS sandbox. This vulnerability is fixed in 1.8.0-beta.27.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 27

Configuration From (including) Up to (excluding)
Getgrav Grav
cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
— 1.8.0
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta1:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta10:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta11:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta12:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta13:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta14:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta15:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta16:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta17:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta18:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta19:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta2:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta20:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta21:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta22:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta23:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta24:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta25:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta26:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta3:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta4:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta5:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta6:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta7:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta8:*:*:*:*:*:*
— —
Getgrav Grav
cpe:2.3:a:getgrav:grav:1.8.0:beta9:*:*:*:*:*:*
— —