llamaCVEVulnerability Intelligence
/
Grav

CVE-2026-130741

Grav arbitrary file read via Twig sandbox bypass

An attacker with publisher access can read any server file, including private keys and the API signing secret.

Specific setups onlyParche disponibleinformation disclosure
Descargar PNG JSON
CVSS 4.0
8.7
Alta
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N Fuente: CNA
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión2.2.18
Exposición1 dDesde la divulgación, 18 nov 2026, 6:34 a. m.
Detección28 minDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
Verificada
06:34 a. m.
07:01 a. m.
11:30 a. m.
08:55 a. m.
06:34 a. m.
01:09 p. m.
07:44 p. m.
02:20 a. m.
08:55 a. m.
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-130741 divulgada · CVSS 8.7 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Grav from 2.0.0 before 2.2.18 contains a Twig sandbox bypass vulnerability that allows publishers to read any server file by abusing allowlisted array_key_value() and page accessor setters such as filePath(). Attackers can repoint page objects or overwrite the assets collections to render private keys and the API signing secret, then forge a super-admin API token.

Only regular pages in Grav 2.0.0 through 2.2.17 are affected, and the attacker needs page edit (publisher) rights. Fixed in Grav 2.2.18.

¿Qué significa?A publisher with page edit rights can read any file the PHP user can read, including private keys and the API signing secret. They can then forge a super-admin API token, which gives full control of the site.
¿Quién está afectado?Grav 2.0.0 through 2.2.17 with regular pages, which is the default page type. Flex pages are not affected. To check, compare the installed Grav version with this range and check which page type the site uses.
¿Qué hacer?Upgrade Grav to 2.2.18 or later. The facts name no vendor patch IDs for this issue.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Grav 2.x from 2.0.0 through 2.2.17“Grav 2.x from 2.0.0 up to and including 2.2.17”
02
Attacker has page edit (publisher) rights“The attacker needs page edit rights.”
03
Regular pages, the default page type (Flex pages are not affected)“Only regular pages are affected, which is the default, because Flex pages throw on these setters”
¿Quién debe revisar?Teams running Grav 2.x (2.0.0 through 2.2.17) where publishers or page editors can edit page content
No protegeRe-adding path or filepath to allowed_methods reopens the file read.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:H
AltoBajoNinguno
Disponib. (sistema)VA:H
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
grav≥ 2.0.0 < 2.2.18
2.0.0
2.2.18
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
grav
Corregida 2.2.18 — —
Versiones corregidas2.2.18
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-8rhf-56h6-j77w

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