CVE-2024-28118: getgrav grav Code Injection
Vulnerability summary
CVE-2024-28118 is a high (CVSS 8.8) Code Injection vulnerability in getgrav grav. EPSS estimates a 1.22% chance of exploitation in the next 30 days, higher than 68.2% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 21-03-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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 config variable. As a result, attacker can bypass a previous SSTI mitigation. 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 fix for this issue.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.22%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
0.00 pp
From 1.22% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGrav
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Getgrav1 product
- grav< 1.7.45
1 vendor · 1 product
References
2 links- github.com/getgrav/grav/security/advisories/GHSA-r6vw-8v8r-pmp4X Refsource CONFIRMExploitVendor Advisory