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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-66299— Security Sandbox Bypass with SSTI (Server Side Template Injection) in the Grav CMS

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是Grav开源的一套可扩展的用于个人博客、小型内容发布平台和单页产品展示的CMS(内容管理系统)。 Grav 1.8.0-beta.27之前版本存在安全漏洞,该漏洞源于服务器端模板注入,可能导致任意代码执行。

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

I. Basic Information for CVE-2025-66299

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
Security Sandbox Bypass with SSTI (Server Side Template Injection) in the Grav CMS
Source: CVE Program / CVE List V5
Vulnerability Description
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (SSTI) that allows any authenticated user with editor permissions to execute arbitrary code on the remote server, bypassing the existing security sandbox. Since the security sandbox does not fully protect the Twig object, it is possible to interact with it (e.g., call methods, read/write attributes) through maliciously crafted Twig template directives injected into a web page. This allows an authenticated editor to add arbitrary functions to the Twig attribute system.twig.safe_filters, effectively bypassing the Grav CMS sandbox. This vulnerability is fixed in 1.8.0-beta.27.
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是Grav开源的一套可扩展的用于个人博客、小型内容发布平台和单页产品展示的CMS(内容管理系统)。 Grav 1.8.0-beta.27之前版本存在安全漏洞,该漏洞源于服务器端模板注入,可能导致任意代码执行。
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.8.0-beta.27 -

II. Public POCs for CVE-2025-66299

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 7550 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-2025-66299

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

Vendor Advisories for CVE-2025-66299 (1)

Same Patch Batch · getgrav · 2025-12-01 · 19 CVEs total

CVE-2025-66295 8.8 HIGH Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Acco
CVE-2025-66296 8.8 HIGH Grav vulnerable to Privilege Escalation in Grav Admin: Missing Username Uniqueness Check A
CVE-2025-66300 8.5 HIGH Grav is vulnerable to Arbitrary File Read
CVE-2025-66302 6.8 MEDIUM Grav vulnerable to Path Traversal allowing server files backup
CVE-2025-66307 6.5 MEDIUM Grav Admin Plugin vulnerable to User Enumeration & Email Disclosure
CVE-2025-66304 6.2 MEDIUM Grav Exposes Password Hashes Leading to privilege escalation
CVE-2025-66303 4.9 MEDIUM Grav is vulnerable to a DOS on the admin panel
CVE-2025-66306 4.3 MEDIUM Grav vulnerable to Information Disclosure via IDOR in Grav Admin Panel
CVE-2025-66312 Grav Admin Plugin vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/account
CVE-2025-66311 Grav vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/pages/[page]` in Mul
CVE-2025-66310 Grav vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/pages/[page]` parame
CVE-2025-66309 Grav vulnerable to Cross-Site Scripting (XSS) Reflected endpoint /admin/pages/[page], para
CVE-2025-66308 Grav Admin Plugin vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/config/
CVE-2025-66305 Grav vulnerable to Denial of Service via Improper Input Handling in 'Supported' Parameter
CVE-2025-66301 Grav ihas Broken Access Control which allows an Editor to modify the page's YAML Frontmatt
CVE-2025-66298 Grav is vulnerable to Server-Side Template Injection (SSTI) via Forms
CVE-2025-66297 Grav vulnerable to Privilege Escalation and Authenticated Remote Code Execution via Twig I
CVE-2025-66294 Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass

IV. Related Vulnerabilities

V. Comments for CVE-2025-66299

No comments yet


Leave a comment