---
id: CVE-2025-66844
title: >-
  In grav <1.7.49.5, a SSRF (Server-Side Request Forgery) vector may be
  triggered via Twig templates when page content is processed by Twig and the
  configuration allows undefined PHP functions to be registered
summary: >-
  In grav <1.7.49.5, a SSRF (Server-Side Request Forgery) vector may be
  triggered via Twig templates when page content is processed by Twig and the
  configuration allows undefined PHP functions to be registered
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-918
vendor: getgrav
product: grav
affected:
  - grav < 1.7.49.5
patched:
  - grav 1.7.49.5
published: '2025-12-15'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T21:10:00.183'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-66844'
references:
  - url: 'https://github.com/Yohane-Mashiro/grav_cve/issues/2'
    label: cve@mitre.org
tags:
  - nvd
epss: 0.00288
epssPercentile: 0.1992
ingestedAt: '2026-10-14T21:57:04.803Z'
---

## Overview

In grav <1.7.49.5, a SSRF (Server-Side Request Forgery) vector may be triggered via Twig templates when page content is processed by Twig and the configuration allows undefined PHP functions to be registered

## Affected

- `grav < 1.7.49.5`

## Remediation

Upgrade past the affected range:

- `grav 1.7.49.5`
