8.8

CVE-2025-66299: getgrav grav Code Injection

CVSS: 8.8v3.1HighAnalyzed
Published 01-12-2025Last modified 02-12-2025

Vulnerability summary

CVE-2025-66299 is a high (CVSS 8.8) Code Injection vulnerability in getgrav grav. EPSS estimates a 0.61% chance of exploitation in the next 30 days, higher than 48.1% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
45/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.61%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 01-12-2025
    PublishedVulnerability first disclosed.
  2. 02-12-2025
    Last modifiedVulnerability information updated.

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 metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

0.61%

Chance of exploitation in the next 30 days

Percentile

48%

Versus all other CVEs

30-day change

+0.01 pp

From 0.60% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.61%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Grav

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Getgrav1 product
  • grav< 1.8.0-beta.27 | < 1.8.0 | 1.8.0:beta1 | 1.8.0:beta10 | 1.8.0:beta11 | 1.8.0:beta12 | 1.8.0:beta13 | 1.8.0:beta14 | 1.8.0:beta15 | 1.8.0:beta16 | 1.8.0:beta17 | 1.8.0:beta18 | 1.8.0:beta19 | 1.8.0:beta2 | 1.8.0:beta20 | 1.8.0:beta21 | 1.8.0:beta22 | 1.8.0:beta23 | 1.8.0:beta24 | 1.8.0:beta25 | 1.8.0:beta26 | 1.8.0:beta3 | 1.8.0:beta4 | 1.8.0:beta5 | 1.8.0:beta6 | 1.8.0:beta7 | 1.8.0:beta8 | 1.8.0:beta9

1 vendor · 1 product

References

2 links