8.8

CVE-2024-28117: getgrav grav Code Injection

CVSS: 8.8v3.1HighAnalyzed
Published 21-03-2024Last modified 13-08-2024

Vulnerability summary

CVE-2024-28117 is a high (CVSS 8.8) Code Injection vulnerability in getgrav grav. EPSS estimates a 1.39% chance of exploitation in the next 30 days, higher than 71.9% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
45/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
1.39%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 21-03-2024
    PublishedVulnerability first disclosed.
  2. 13-08-2024
    Last modifiedVulnerability information updated.

Description

Grav is an open-source, flat-file content management system. Prior to version 1.7.45, Grav validates accessible functions through the Utils::isDangerousFunction function, but does not impose restrictions on twig functions like twig_array_map, allowing attackers to bypass the validation 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. Upgrading to patched version 1.7.45 can mitigate this issue.

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

1.39%

Chance of exploitation in the next 30 days

Percentile

72%

Versus all other CVEs

30-day change

0.00 pp

From 1.39% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.39%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Grav

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Getgrav1 product

1 vendor · 1 product

References

2 links