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

CVE-2024-28118: Server Side Template Injection (SSTI)

March 22, 2024 (updated January 3, 2025)

Due to the unrestricted access to twig extension class from grav context, an attacker can redefine config variable. As a result, attacker can bypass previous patch.

References

  • github.com/advisories/GHSA-r6vw-8v8r-pmp4
  • github.com/getgrav/grav
  • github.com/getgrav/grav/commit/de1ccfa12dbcbf526104d68c1a6bc202a98698fe
  • github.com/getgrav/grav/security/advisories/GHSA-r6vw-8v8r-pmp4
  • nvd.nist.gov/vuln/detail/CVE-2024-28118

Code Behaviors & Features

Detect and mitigate CVE-2024-28118 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-94: Improper Control of Generation of Code ('Code Injection')

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:51 +0000.