RCE in Getgrav Grav

CVE-2024-28116

Grav is an open-source, flat-file content management system. Grav CMS prior to version 1.7.45 is vulnerable to a Server-Side Template Injection (SSTI), which allows any authenticated user (editor permissions are sufficient) to execute arbitrary code on the remote server bypassing the existing security sandbox. Version 1.7.45 contains a patch for this issue.

Vulnerability class: RCE (Remote Code Execution)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.058, 93.3th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

4 public repositories with exploit or proof-of-concept code for this CVE:

  • akabe1/Graver (8 stars, last pushed 2024-03-24): Proof of Concept script to exploit the authenticated SSTI+RCE in Grav CMS (CVE-2024-28116)
  • geniuszly/GenGravSSTIExploit (7 stars, last pushed 2024-10-05): is a PoC Python script that exploits an authenticated Server-Side Template Injection (SSTI) vulnerability in Grav CMS versions <= 1.7.44 (CVE-2024-28116)
  • bebarossi/grav-cve-2024-28116 (last pushed 2026-08-19): Analysis and Docker reproduction of CVE-2024-28116 - SSTI with sandbox bypass in Grav CMS
  • gunzf0x/Grav-CMS-RCE-Authenticated (last pushed 2024-09-07): Exploit against Grav CMS (versions below 1.7.45) that allows Remote Code Execution for an authenticated user - CVE-2024-28116

Also mentioned in 4 other repositories (geniuszlyy/GenGravSSTIExploit, NaInSec/CVE-LIST, nomi-sec/PoC-in-GitHub, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References