CVE-2025-66844 Grav may be vulnerable to SSRF attack via Twig Templates
Attackers can trigger Server-Side Request Forgery in Grav CMS via Twig templates if undefined PHP functions are allowed in configuration.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-66844?
CVE-2025-66844 is a critical server-side request forgery vulnerability in Getgrav Grav, published on 15 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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
Weakness: CWE-918
Which versions are affected by CVE-2025-66844?
2 open source packages ship an affected version, including getgrav/grav. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
getgrav/grav Packagist | All versions to 1.7.49.5 | None |
getgrav/grav Packagist | All versions to 1.7.49.5 | None |
Products include Getgrav Grav.
How do I fix CVE-2025-66844?
No fix has been published for CVE-2025-66844 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2025-66844 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-66844 exists.
Other vulnerabilities in Getgrav Grav
Sources
Also known as GHSA-729w-j79f-2c34.