CVE-2021-29440
Grav Unsandboxed Twig Code Execution Vulnerability
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.
INFO
Published Date :
April 13, 2021, 8:15 p.m.
Last Modified :
Nov. 9, 2022, 3:12 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
6.0
Exploitability Score :
1.7
Public PoC/Exploit Available at Github
CVE-2021-29440 has a 6 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-29440
.
URL | Resource |
---|---|
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 |
https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc | Third Party Advisory |
https://packagist.org/packages/getgrav/grav | Product Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
All CVE - PoC in GitHub
poc proofofconcept tester allcve cvegithub cvenew cvepoc cveupdate
None
None
None
Unsafe Twig processing of static pages leading to RCE in Grav CMS 1.7.10
Python Shell
Automatic monitor github cve using Github Actions
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-29440
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-29440
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Nov. 09, 2022
Action Type Old Value New Value Changed Reference Type https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities No Types Assigned https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities Exploit, Third Party Advisory -
CVE Modified by [email protected]
Aug. 02, 2022
Action Type Old Value New Value Added Reference https://blog.sonarsource.com/grav-cms-code-execution-vulnerabilities [No Types Assigned] -
Modified Analysis by [email protected]
Jun. 08, 2021
Action Type Old Value New Value Changed Reference Type http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html No Types Assigned http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html Exploit, Third Party Advisory, VDB Entry -
CVE Modified by [email protected]
Jun. 07, 2021
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/162987/Grav-CMS-1.7.10-Server-Side-Template-Injection.html [No Types Assigned] -
Initial Analysis by [email protected]
Apr. 19, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc No Types Assigned https://github.com/getgrav/grav/security/advisories/GHSA-g8r4-p96j-xfxc Third Party Advisory Changed Reference Type https://packagist.org/packages/getgrav/grav No Types Assigned https://packagist.org/packages/getgrav/grav Product, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* versions up to (excluding) 1.7.11
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-29440
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-29440
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
5.10 }} 1.32%
score
0.93111
percentile