CVE-2023-34252: high-severity vulnerability in getgrav grav
Grav Server-side Template Injection via Insufficient Validation in filterFilter
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Grav CMS has a flaw in its template filter validation that allows attackers with admin access to inject malicious code and take over the website. The vulnerability exists because the security check can be bypassed by passing data in a specific format.
Server-side template injection in Grav's GravExtension.filterFilter() function caused by insufficient input validation when array callables bypass the denylist check for unsafe functions. An authenticated attacker with page creation/update permissions can inject arbitrary Twig templates to achieve remote code execution. Patch available in version 1.7.42; mitigation includes disabling twig.undefined_functions and twig.undefined_filters in system.yaml.
In the same product, most dangerous first.