# CVE-2025-66299: Security Sandbox Bypass with SSTI (Server Side Template Injection) in the Grav CMS

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.65%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-01T21:15:11.704Z
- Modified: 2026-09-26T00:10:00.127Z
- Also known as: GHSA-gjc5-8cfh-653x
- Weaknesses: CWE-94, CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (SSTI) that allows any authenticated user with editor permissions to execute arbitrary code on the remote server, bypassing the existing security sandbox. Since the security sandbox does not fully protect the Twig object, it is possible to interact with it (e.g., call methods, read/write attributes) through maliciously crafted Twig template directives injected into a web page. This allows an authenticated editor to add arbitrary functions to the Twig attribute system.twig.safe_filters, effectively bypassing the Grav CMS sandbox. This vulnerability is fixed in 1.8.0-beta.27.

(As written by CVE List.)

## Affected

- getgrav grav: < 1.8.0-beta.27; before 1.8.0; 1.8.0
- getgrav/grav (Packagist): before 1.8.0-beta.27

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-gjc5-8cfh-653x> (exploit, third-party-advisory, web)
- <https://github.com/getgrav/grav/commit/e37259527d9c1deb6200f8967197a9fa587c6458> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66299> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2025-66299](https://www.cve.org/CVERecord?id=CVE-2025-66299), CVE Terms of Use, modified 2025-12-02
- GitHub Advisory Database: [GHSA-gjc5-8cfh-653x](https://github.com/advisories/GHSA-gjc5-8cfh-653x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-66299](https://nvd.nist.gov/vuln/detail/CVE-2025-66299), Public domain, modified 2026-09-26

---

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