# CVE-2024-28117: Grav vulnerable to Server Side Template Injection (SSTI)

- 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): 1.39%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-21T21:50:47.203Z
- Modified: 2026-09-10T03:50:10.692Z
- Also known as: GHSA-qfv4-q44r-g7rv
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Grav is an open-source, flat-file content management system. Prior to version 1.7.45, Grav validates accessible functions through the Utils::isDangerousFunction function, but does not impose restrictions on twig functions like twig_array_map, allowing attackers to bypass the validation and execute arbitrary commands. Twig processing of static pages can be enabled in the front matter by any administrative user allowed to create or edit pages. As the Twig processor runs unsandboxed, this behavior can be used to gain arbitrary code execution and elevate privileges on the instance. Upgrading to patched version 1.7.45 can mitigate this issue.

(As written by CVE List.)

## Affected

- getgrav grav: < 1.7.45; before 1.7.45
- getgrav/grav (Packagist): before 1.7.45

## 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`
- NVD: 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-qfv4-q44r-g7rv> (exploit, vendor-advisory, web)
- <https://github.com/getgrav/grav/commit/de1ccfa12dbcbf526104d68c1a6bc202a98698fe> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28117> (advisory)
- <https://github.com/getgrav/grav> (package)

## Sources

- CVE List: [CVE-2024-28117](https://www.cve.org/CVERecord?id=CVE-2024-28117), CVE Terms of Use, modified 2024-08-13
- GitHub Advisory Database: [GHSA-qfv4-q44r-g7rv](https://github.com/advisories/GHSA-qfv4-q44r-g7rv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-28117](https://nvd.nist.gov/vuln/detail/CVE-2024-28117), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-28117 · Whole record: https://cve.day/CVE-2024-28117.json · Rebuilt by cve.day 2026-11-25T22:58:37.826Z
