CVE-2025-66299

HIGH EPSS 40.1%
Published Dec 1, 20257mo ago · Modified Jun 17, 20261w ago
8.8 CVSS 3.1
High
Find Similar
Published Dec 1, 2025 7mo ago
Last Modified Jun 17, 2026 1w ago

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.

CVSS Details

Base Score
8.8
Exploitability
2.8
Impact
5.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

EPSS Exploit Probability
40.1% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 2

CWE-1336
CWE-94 Improper Control of Generation of Code (Code Injection) Injection

Affected Products 27

VendorProductVersionRange
getgravgrav* <1.8.0
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any
getgravgrav1.8.0any

References 2

  • github.com https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458
    Patch
  • github.com https://github.com/getgrav/grav/security/advisories/GHSA-gjc5-8cfh-653x
    ExploitThird Party Advisory

Remediation

  • github.com https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458
    Patch