CVE-2025-66299

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.
Code Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub_MCNA
8.8 HIGH
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 20%
VendorProductVersion
getgravgrav
𝑥
< 1.8.0
getgravgrav
1.8.0:beta1
getgravgrav
1.8.0:beta10
getgravgrav
1.8.0:beta11
getgravgrav
1.8.0:beta12
getgravgrav
1.8.0:beta13
getgravgrav
1.8.0:beta14
getgravgrav
1.8.0:beta15
getgravgrav
1.8.0:beta16
getgravgrav
1.8.0:beta17
getgravgrav
1.8.0:beta18
getgravgrav
1.8.0:beta19
getgravgrav
1.8.0:beta2
getgravgrav
1.8.0:beta20
getgravgrav
1.8.0:beta21
getgravgrav
1.8.0:beta22
getgravgrav
1.8.0:beta23
getgravgrav
1.8.0:beta24
getgravgrav
1.8.0:beta25
getgravgrav
1.8.0:beta26
getgravgrav
1.8.0:beta3
getgravgrav
1.8.0:beta4
getgravgrav
1.8.0:beta5
getgravgrav
1.8.0:beta6
getgravgrav
1.8.0:beta7
getgravgrav
1.8.0:beta8
getgravgrav
1.8.0:beta9
𝑥
= Vulnerable software versions