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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-66294— Grav is vulnerable to RCE via SSTI through Twig Sandbox Bypass

Quick assessment

Affected
getgrav grav
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
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之前版本存在安全漏洞,该漏洞源于cleanDangerousTwig方法正则表达式验证不足,可能导致服务器端模板注入攻击。

AI Predicted 9.8 Difficulty: Easy EPSS 2.82% · P86

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-66294

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 is vulnerable to RCE via SSTI through Twig Sandbox Bypass
Source: CVE Program / CVE List V5
Vulnerability Description
Grav is a file-based Web platform. Prior to 1.8.0-beta.27, a Server-Side Template Injection (SSTI) vulnerability exists in Grav that allows authenticated attackers with editor permissions to execute arbitrary commands on the server and, under certain conditions, may also be exploited by unauthenticated attackers. This vulnerability stems from weak regex validation in the cleanDangerousTwig method. This vulnerability is fixed in 1.8.0-beta.27.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
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之前版本存在安全漏洞,该漏洞源于cleanDangerousTwig方法正则表达式验证不足,可能导致服务器端模板注入攻击。
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-66294

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-66294

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

Vendor Advisories for CVE-2025-66294 (1)

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

CVE-2025-66296 8.8 HIGH Grav vulnerable to Privilege Escalation in Grav Admin: Missing Username Uniqueness Check A
CVE-2025-66295 8.8 HIGH Grav vulnerable to Path traversal / arbitrary YAML write via user creation leading to Acco
CVE-2025-66299 8.8 HIGH Security Sandbox Bypass with SSTI (Server Side Template Injection) in the Grav CMS
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-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-66305 Grav vulnerable to Denial of Service via Improper Input Handling in 'Supported' Parameter
CVE-2025-66297 Grav vulnerable to Privilege Escalation and Authenticated Remote Code Execution via Twig I
CVE-2025-66308 Grav Admin Plugin vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/config/
CVE-2025-66309 Grav vulnerable to Cross-Site Scripting (XSS) Reflected endpoint /admin/pages/[page], para
CVE-2025-66310 Grav vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/pages/[page]` parame
CVE-2025-66311 Grav vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/pages/[page]` in Mul
CVE-2025-66312 Grav Admin Plugin vulnerable to Cross-Site Scripting (XSS) Stored endpoint `/admin/account

IV. Related Vulnerabilities

V. Comments for CVE-2025-66294

No comments yet


Leave a comment