CVE-2024-28119

Grav vulnerable to Server Side Template Injection (SSTI) via Twig escape handler

Published Mar 21, 2024 CVSS 3.1 · 8.8 High EPSS 1.6% KEV · Not listed
Description
Grav is an open-source, flat-file content management system. Prior to version 1.7.45, due to the unrestricted access to twig extension class from grav context, an attacker can redefine the escape function 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. Version 1.7.45 contains a patch for this issue.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0788 Grav is an open-source, flat-file content management system. Prior to version 1.7.45, due to the unrestricted access to twig extension class from grav context, an attacker can redefine the escape function 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. Version 1.7.45 contains a patch for this issue.
Github GHSA Github GHSA GHSA-2m7x-c7px-hp58 Server Side Template Injection (SSTI) via Twig escape handler
History
Type Values Removed Values Added
First Time appeared Getgrav
Getgrav grav
CPEs cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*
Vendors & Products Getgrav
Getgrav grav
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 21, 2024, 10:55 PM
Reserved
Mar 4, 2024, 2:19 PM
Status
Analyzed
Published
Mar 21, 2024, 10:15 PM
Modified
Jun 17, 2026, 7:21 AM