CVE-2025-66844: Grav may be vulnerable to SSRF attack via Twig Templates
Grav may be vulnerable to SSRF attack via Twig Templates
Other sources
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
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Gravto a version that resolves this vulnerability.Fixed in 1.7.49.5
Event History
Frequently Asked Questions
What is the severity of CVE-2025-66844?
CVE-2025-66844 is classified as a high severity vulnerability due to its potential to exploit SSRF attacks.
How do I fix CVE-2025-66844?
To fix CVE-2025-66844, upgrade Grav to version 1.7.49.5 or later, ensuring that undefined PHP functions cannot be registered.
What is the impact of CVE-2025-66844?
The impact of CVE-2025-66844 includes the possibility of attackers making unauthorized requests from the server, potentially leading to data exposure.
Which versions of Grav are affected by CVE-2025-66844?
Grav versions prior to 1.7.49.5 are affected by CVE-2025-66844.
How can I identify if my system is vulnerable to CVE-2025-66844?
You can identify if your system is vulnerable to CVE-2025-66844 by checking if your Grav installation is below version 1.7.49.5 and reviewing your Twig template configurations.