llamaCVEVulnerability Intelligence
/
grav

CVE-2025-66299

Security Sandbox Bypass with SSTI (Server Side Template Injection) in the Grav CMS

Texto original en inglés · Ver en español

Solo en configuraciones específicasParche disponiblecode injection
Descargar PNG JSON
CVSS 3.1
8.8
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónPoC públicaSSVC: PoC · no figura en CISA KEV
Exploits públicos0CISA-ADP reporta PoC; aún sin enlace público
Parche1 versión1.8.0-beta.27
Exposición354 dDesde la divulgación, 1 dic 2025, 4:15 p. m.
Detección350 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Existe PoC pública, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Pide el café grande y agenda el parche.CVSS alto, corazón bajito. Priorízala.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada
Verificada
1 dic 25
2 dic 25
17 nov 26
18 nov 26
21 nov 26
1 dic 25
28 feb 26
28 may 26
25 ago 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2025-66299 divulgada · CVSS 8.8 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

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.

Affects Grav CMS versions before 1.8.0-beta.27 on pages with Twig processing enabled. Fixed in 1.8.0-beta.27.

¿Qué significa?The bug lets code run on the server through template injection in Grav CMS, getting past the CMS's security sandbox. The advisory describes the result as remote code execution on the underlying server.
¿Quién está afectado?Grav versions before 1.8.0-beta.27 are affected, but only for pages where Twig processing is enabled. To check, look at the Grav version in the admin panel or the installed package, and check whether Twig processing is enabled on the page being edited.
¿Qué hacer?Upgrade Grav to 1.8.0-beta.27 or later, which is the fixed version listed for this vulnerability.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Grav versions before 1.8.0-beta.27“< 1.8.0-beta.27”
02
The page being edited has Twig processing enabled“(with Twig processing enabled)”
¿Quién debe revisar?Teams running Grav CMS before 1.8.0-beta.27 where editors can edit pages with Twig processing enabled
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 8.3 (muy fácil) · +1.7 por PoC pública.
Versiones

Rangos afectados

Afectada Corregida
grav · getgrav/grav< 1.8.0-beta.27
1.8.0-beta.27
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
grav
Corregida 1.8.0-beta.27 — —
Versiones corregidas1.8.0-beta.27
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/getgrav/grav/security/advisories/GHSA-gjc5-8cfh-653x
Otrahttps://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.