Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. getgrav/grav
  4. ›
  5. CVE-2024-28116

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

March 22, 2024

Grav CMS 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.

References

  • github.com/advisories/GHSA-c9gp-64c4-2rrh
  • github.com/getgrav/grav
  • github.com/getgrav/grav/commit/4149c81339274130742831422de2685f298f3a6e
  • github.com/getgrav/grav/security/advisories/GHSA-c9gp-64c4-2rrh
  • nvd.nist.gov/vuln/detail/CVE-2024-28116

Code Behaviors & Features

Detect and mitigate CVE-2024-28116 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.45

Fixed versions

  • 1.7.45

Solution

Upgrade to version 1.7.45 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/getgrav/grav/CVE-2024-28116.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 00:14:43 +0000.