Vulnerability record · CVE-2021-29440 · published 13 April 2021
CVE-2021-29440: Getgrav grav code injection vulnerability
Getgrav · Grav
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.
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:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html | ExploitThird Party AdvisoryVDB Entry |
| https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities | ExploitThird Party Advisory |
| https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc | Third Party Advisory |
| https://packagist.org/packages/getgrav/grav | ProductThird Party Advisory |
| http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html | ExploitThird Party AdvisoryVDB Entry |
| https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities | ExploitThird Party Advisory |
| https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc | Third Party Advisory |
| https://packagist.org/packages/getgrav/grav | ProductThird Party Advisory |
Track CVE-2021-29440 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-29440), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.