CVE-2023-34448
Grav Twig Filter Function Overwrite Vulnerability
Description
Grav is a flat-file content management system. Prior to version 1.7.42, the patch for CVE-2022-2073, a server-side template injection vulnerability in Grav leveraging the default `filter()` function, did not block other built-in functions exposed by Twig's Core Extension that could be used to invoke arbitrary unsafe functions, thereby allowing for remote code execution. A patch in version 1.74.2 overrides the built-in Twig `map()` and `reduce()` filter functions in `system/src/Grav/Common/Twig/Extension/GravExtension.php` to validate the argument passed to the filter in `$arrow`.
INFO
Published Date :
June 14, 2023, 11:15 p.m.
Last Modified :
June 22, 2023, 4:31 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
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-2023-34448
.
URL | Resource |
---|---|
https://github.com/getgrav/grav/commit/8c2c1cb72611a399f13423fc6d0e1d998c03e5c8 | Patch Vendor Advisory |
https://github.com/getgrav/grav/security/advisories/GHSA-whr7-m3f8-mpm8 | Vendor Advisory |
https://github.com/twigphp/Twig/blob/v1.44.7/src/Environment.php#L148 | Vendor Advisory |
https://huntr.dev/bounties/3ef640e6-9e25-4ecb-8ec1-64311d63fe66/ | Exploit Patch Third Party Advisory |
https://www.github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83 | Exploit Mitigation Vendor 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).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-34448
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-34448
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 -
Initial Analysis by [email protected]
Jun. 22, 2023
Action Type Old Value New Value 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/commit/8c2c1cb72611a399f13423fc6d0e1d998c03e5c8 No Types Assigned https://github.com/getgrav/grav/commit/8c2c1cb72611a399f13423fc6d0e1d998c03e5c8 Patch, Vendor Advisory Changed Reference Type https://github.com/getgrav/grav/security/advisories/GHSA-whr7-m3f8-mpm8 No Types Assigned https://github.com/getgrav/grav/security/advisories/GHSA-whr7-m3f8-mpm8 Vendor Advisory Changed Reference Type https://github.com/twigphp/Twig/blob/v1.44.7/src/Environment.php#L148 No Types Assigned https://github.com/twigphp/Twig/blob/v1.44.7/src/Environment.php#L148 Vendor Advisory Changed Reference Type https://huntr.dev/bounties/3ef640e6-9e25-4ecb-8ec1-64311d63fe66/ No Types Assigned https://huntr.dev/bounties/3ef640e6-9e25-4ecb-8ec1-64311d63fe66/ Exploit, Patch, Third Party Advisory Changed Reference Type https://www.github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83 No Types Assigned https://www.github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83 Exploit, Mitigation, Vendor Advisory Added CWE NIST CWE-94 Added CPE Configuration OR *cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:* versions up to (excluding) 1.7.42 -
CVE Modified by [email protected]
Jun. 15, 2023
Action Type Old Value New Value Changed Description Grav is a file-based Web platform. Prior to version 1.7.42, the patch for CVE-2022-2073, a server-side template injection vulnerability in Grav leveraging the default `filter()` function, did not block other built-in functions exposed by Twig's Core Extension that could be used to invoke arbitrary unsafe functions, thereby allowing for remote code execution. A patch in version 1.74.2 overrides the built-in Twig `map()` and `reduce()` filter functions in `system/src/Grav/Common/Twig/Extension/GravExtension.php` to validate the argument passed to the filter in `$arrow`. Grav is a flat-file content management system. Prior to version 1.7.42, the patch for CVE-2022-2073, a server-side template injection vulnerability in Grav leveraging the default `filter()` function, did not block other built-in functions exposed by Twig's Core Extension that could be used to invoke arbitrary unsafe functions, thereby allowing for remote code execution. A patch in version 1.74.2 overrides the built-in Twig `map()` and `reduce()` filter functions in `system/src/Grav/Common/Twig/Extension/GravExtension.php` to validate the argument passed to the filter in `$arrow`.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-34448
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-2023-34448
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.86 }} 0.08%
score
0.82518
percentile