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.
References
Link | Resource |
---|---|
https://packagist.org/packages/getgrav/grav | Product Third Party Advisory |
https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc | Third Party Advisory |
http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html | Exploit Third Party Advisory VDB Entry |
https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities | Exploit Third Party Advisory |
Configurations
Information
Published : 2021-04-13 13:15
Updated : 2022-11-08 19:12
NVD link : CVE-2021-29440
Mitre link : CVE-2021-29440
JSON object : View
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
Products Affected
getgrav
- grav