8.8
CWE
94 1336 20
Advisory Published
Advisory Published
Updated

CVE-2023-34448: Grav Server-side Template Injection (SSTI) via Twig Default Filters

First published: Wed Jun 14 2023(Updated: )

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`.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Getgrav Grav<1.7.42
composer/getgrav/grav<1.7.42
1.7.42

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2023-34448?

    CVE-2023-34448 is a server-side template injection vulnerability in Grav prior to version 1.7.42 that can be exploited using the default `filter()` function.

  • How severe is CVE-2023-34448?

    CVE-2023-34448 has a severity rating of 7.2, which is considered high.

  • What software is affected by CVE-2023-34448?

    Grav prior to version 1.7.42 is affected by CVE-2023-34448.

  • How can CVE-2023-34448 be exploited?

    CVE-2023-34448 can be exploited by leveraging the default `filter()` function in Grav to perform server-side template injection.

  • Is there a patch available for CVE-2023-34448?

    Yes, a patch for CVE-2023-34448 is available in version 1.7.42 of Grav.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203