CVE-2023-34251CWE-94

Grav Server Side Template Injection vulnerability

Critical · published June 14, 2023

CVSS v3.1
10.0
EPSS
2%
Percentile
83.5
In the wild
Unconfirmed
What it is

🚨 A crafty page editor can unleash a world of chaos with just a sprinkle of malicious PHP code! 🔥 Get ready to secure your Grav installation if it’s below version 1.7.42! Think of it like a restaurant where a waiter can alter the chef's special without approval. If they slip in a hidden ingredient that ruins the dish, the whole meal can be tainted — and in this case, your server is the kitchen. This vulnerability opens the door to remote code execution, meaning an attacker could not only access sensitive data but also gain full control over your server. It's an absolute disaster waiting to happen, as any page editor could potentially execute harmful code without your knowledge, leading to data breaches and service disruption!

Put simply

Think of it like a restaurant where a waiter can alter the chef's special without approval. If they slip in a hidden ingredient that ruins the dish, the whole meal can be tainted — and in this case, your server is the kitchen. CVE-2023-34251 is a server-side template injection vulnerability found in Grav versions prior to 1.7.42. It allows users with page editing privileges to inject malicious PHP code into the administrator screen, enabling remote code execution.

What to do

This vulnerability opens the door to remote code execution, meaning an attacker could not only access sensitive data but also gain full control over your server. It's an absolute disaster waiting to happen, as any page editor could potentially execute harmful code without your knowledge, leading to data breaches and service disruption! To protect your site, immediately upgrade to Grav version 1.7.42 or later. Additionally, review your user roles to ensure that only trusted individuals have page editing privileges. It’s a good practice to audit any third-party plugins you’re using for vulnerabilities, too! You've got this! Follow these steps, and your Grav site will be safer than ever! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02338 · 83.5th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2023-06-14T21:31Z
EPSS history
Timeline
  • 14 JUN 21:31Z
    Grav Server Side Template Injection vulnerability
    cvelistv5