# CVE-2025-66844: Grav may be vulnerable to SSRF attack via Twig Templates

Source: https://junglewise.ai/threats/cve-2025-66844-grav-may-be-vulnerable-to-ssrf-attack-via-twig-templates  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-15  
License: CC BY 4.0 with a link back

CVE-2025-66844 · Severity: critical · CVSS 9.1 · Published 2025-12-15

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

Technologies: [Getgrav Grav](https://junglewise.ai/threats/technologies/getgrav-grav-1), [getgrav/grav (Packagist)](https://junglewise.ai/threats/technologies/getgrav-grav). Vendors: [Getgrav](https://junglewise.ai/threats/vendors/getgrav), [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2025-66844 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-66844 being exploited in the wild.

**How severe is CVE-2025-66844?** Critical severity, with a CVSS score of 9.1, published 15 December 2025.

**Which products and versions are affected?** getgrav/grav (Packagist) ECOSYSTEM:introduced=0,last_affected=1.7.49.5.

**Is there a fix for CVE-2025-66844?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2025-66844?** Check whether you run Getgrav Grav or getgrav/grav (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- Getgrav Grav
- getgrav/grav (Packagist) ECOSYSTEM:introduced=0,last_affected=1.7.49.5

## Identifiers

- CVE-2025-66844
- GHSA-729w-j79f-2c34

## Related threats

- [Grav authorization bypass in Clockwork profiler debugger](https://junglewise.ai/threats/cve-2026-117604-grav-from-1-7-53-3-before-1-7-53-6-contains-an-authorization)
- [Grav information disclosure via form config directives](https://junglewise.ai/threats/cve-2026-112781-grav-from-2-0-0-before-2-2-2-contains-an-information-disclosure)
- [Grav allowlist bypass in Flex form field renaming](https://junglewise.ai/threats/cve-2026-112780-grav-from-2-0-15-before-2-2-2-contains-an-allowlist-bypass)
- [Grav session cookie theft via Twig sandbox](https://junglewise.ai/threats/cve-2026-100671-grav-is-a-flat-file-cms-in-versions-2-0-19-through-2-0-24-and-in)
- [Grav sandbox escape via array filter](https://junglewise.ai/threats/cve-2026-100668-grav-2-0-0-through-2-0-24-contain-a-twig-content-sandbox-escape)
