← volver
CVE-2023-34448

Grav Server-side Template Injection (SSTI) via Twig Default Filters

CVSS 8.8 HIGHEPSS 4.5%CWE-1336CWE-20
En resumen

Grav CMS tiene una vulnerabilidad de inyección de plantilla donde los atacantes pueden ejecutar código arbitrario a través de funciones integradas de Twig como map() y reduce(), aunque un parche anterior intentó corregir un problema similar. Esto permite la ejecución remota de código si un atacante puede controlar la entrada de plantilla.

Detalle técnico

La inyección de plantilla del lado del servidor (SSTI) en versiones de Grav anteriores a 1.7.42 permite la ejecución remota de código a través de funciones peligrosas de la extensión Twig Core (filtros map y reduce). La vulnerabilidad existe porque el parche anterior de CVE-2022-2073 solo bloqueó la función filter(), pero falló en validar argumentos en otras funciones integradas peligrosas. Un atacante con capacidad de inyectar código de plantilla puede explotar el parámetro $arrow no validado para invocar funciones arbitrarias.

Resumen generado y traducido por IA a partir de la descripción oficial.
Grav is a flat-file content management system. Prior to version 1.7.42, the patch for CVE-2022-2073, a server-side template injection vulnerability in Grav leveraging the default `filter()` function, did not block other built-in functions exposed by Twig's Core Extension that could be used to invoke arbitrary unsafe functions, thereby allowing for remote code execution. A patch in version 1.74.2 overrides the built-in Twig `map()` and `reduce()` filter functions in `system/src/Grav/Common/Twig/Extension/GravExtension.php` to validate the argument passed to the filter in `$arrow`.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Productos afectados
getgrav · grav

¿Quieres saber si tu infraestructura está expuesta a esto?

Hablar con TrueHacking →