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

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-15T00:00:00.000Z
- Modified: 2026-10-23T22:10:00.160Z
- Also known as: GHSA-729w-j79f-2c34
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- getgrav/grav (Packagist): up to 1.7.49.5
- getgrav grav: before 1.7.49.5

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/Yohane-Mashiro/grav_cve/issues/2> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66844> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2025-66844](https://www.cve.org/CVERecord?id=CVE-2025-66844), CVE Terms of Use, modified 2025-12-16
- GitHub Advisory Database: [GHSA-729w-j79f-2c34](https://github.com/advisories/GHSA-729w-j79f-2c34), CC-BY-4.0, modified 2025-12-17
- NVD: [CVE-2025-66844](https://nvd.nist.gov/vuln/detail/CVE-2025-66844), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2025-66844 · Whole record: https://cve.day/CVE-2025-66844.json · Rebuilt by cve.day 2026-11-25T22:59:09.410Z
