CVE-2021-29440: getgrav grav Code Injection
Vulnerability summary
CVE-2021-29440 is a high (CVSS 8.4) Code Injection vulnerability in getgrav grav. EPSS estimates a 29.90% chance of exploitation in the next 30 days, higher than 98.1% of scored vulnerabilities. 3 public exploits are recorded.
Timeline
- 13-04-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
Grav is a file based Web-platform. 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. The issue was addressed in version 1.7.11.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
29.90%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
-0.73 pp
From 30.62% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundExploit Reference (packetstormsecurity.com)
Maturity: unknown
Exploit Reference (blog.sonarsource.com)
Maturity: unknown
Grav CMS 1.7.10 - Server-Side Template Injection (SSTI) (Authenticated)
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Getgrav1 product
- grav< 1.7.11
1 vendor · 1 product
References
4 links- github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxcX Refsource CONFIRMThird Party Advisory
- packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.htmlX Refsource MISCExploitThird Party AdvisoryVDB Entry
- blog.sonarsource.com/grav-cms-code-execution-vulnerabilitiesX Refsource MISCExploitThird Party Advisory