CVE-2023-34448: Grav Server-side Template Injection (SSTI) via Twig Default Filters
getgrav · grav
Affected: getgrav grav · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 91% of scored CVEs
DescriptionCVE.org
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`.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- getgrav · grav< 1.7.42
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Weakness
- Improper Neutralization of Special Elements Used in a Template Engine · Command and Code Injection
- Vendor
- getgrav
- Published
- June 2023
CoverageNo articles yet
No CyberSIXT article names CVE-2023-34448 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-1336cwe.mitre.org
- github.com/getgrav/grav/security/advisories/GHSA-whr7-m3f8-mpm8github.com
- github.com/getgrav/grav/commit/8c2c1cb72611a399f13423fc6d0e1d998github.com
- github.com/twigphp/Twig/blob/v1.44.7/src/Environment.php#L148github.com
- huntr.dev/bounties/3ef640e6-9e25-4ecb-8ec1-64311d63fe66huntr.dev
- github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea35github.com