Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-28117— Grav vulnerable to Server Side Template Injection (SSTI)

Quick assessment

Affected
getgrav grav
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Grav是一套可扩展的用于个人博客、小型内容发布平台和单页产品展示的CMS(内容管理系统)。 Grav 1.7.45 版本之前存在安全漏洞,该漏洞源于通过Utils::isDangerousFunction函数验证可访问的函数,但不对twig_array_map等twig函数施加限制。

CVSS 8.8 · High EPSS 1.39% · P71
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-28117

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Grav vulnerable to Server Side Template Injection (SSTI)
Source: CVE Program / CVE List V5
Vulnerability Description
Grav is an open-source, flat-file content management system. Prior to version 1.7.45, Grav validates accessible functions through the Utils::isDangerousFunction function, but does not impose restrictions on twig functions like twig_array_map, allowing attackers to bypass the validation and execute arbitrary commands. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. Upgrading to patched version 1.7.45 can mitigate this issue.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Grav 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Grav是一套可扩展的用于个人博客、小型内容发布平台和单页产品展示的CMS(内容管理系统)。 Grav 1.7.45 版本之前存在安全漏洞,该漏洞源于通过Utils::isDangerousFunction函数验证可访问的函数,但不对twig_array_map等twig函数施加限制。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
getgrav grav < 1.7.45 -

II. Public POCs for CVE-2024-28117

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 7972 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2024-28117

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-28117 (1)

Vendor Advisories for CVE-2024-28117 (1)

Same Patch Batch · getgrav · 2024-03-21 · 5 CVEs total

CVE-2024-28119 8.8 HIGH Grav vulnerable to Server Side Template Injection (SSTI) via Twig escape handler
CVE-2024-28118 8.8 HIGH Grav vulnerable to Server Side Template Injection (SSTI)
CVE-2024-28116 8.8 HIGH Server-Side Template Injection (SSTI) with Grav CMS security sandbox bypass
CVE-2024-27921 8.8 HIGH Grav File Upload Path Traversal vulnerability

IV. Related Vulnerabilities

V. Comments for CVE-2024-28117

No comments yet


Leave a comment