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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

CVSS 8.8 · High EPSS 0.13% · P32
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
getgravgrav < 1.8.0-beta.27 -

II. Public POCs for CVE-2025-66299

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-66299

登录查看更多情报信息。

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

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-66299

No comments yet


Leave a comment