CVE-2021-29440
Twig allowing dangerous PHP functions by default
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
5Exploited in Wild
-Decision
Descriptions
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.
Grav es una plataforma web basada en archivos. El procesamiento de Twig de páginas estáticas puede ser habilitado en la materia inicial por cualquier usuario administrativo autorizado para crear o editar páginas. Como el procesador Twig se ejecuta sin sandbox, este comportamiento puede ser usado para obtener una ejecución de código arbitraria y elevar los privilegios en la instancia. El problema se solucionó en la versión 1.7.11
Grav CMS version 1.7.10 suffers from a server-side template injection vulnerability.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2021-03-30 CVE Reserved
- 2021-04-13 CVE Published
- 2021-06-06 First Exploit
- 2024-08-03 CVE Updated
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-94: Improper Control of Generation of Code ('Code Injection')
CAPEC
References (7)
URL | Tag | Source |
---|---|---|
https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc | Third Party Advisory | |
https://packagist.org/packages/getgrav/grav | Product |
URL | Date | SRC |
---|---|---|
https://packetstorm.news/files/id/162987 | 2021-06-07 | |
https://www.exploit-db.com/exploits/49961 | 2021-06-07 | |
https://github.com/CsEnox/CVE-2021-29440 | 2021-06-06 | |
http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html | 2024-08-03 | |
https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities | 2024-08-03 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|