SB2023061920 - Multiple vulnerabilities in Grav CMS
Published: June 19, 2023
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 7 secuirty vulnerabilities.
1) Code Injection (CVE-ID: CVE-2023-30592)
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to Server Side Template Injection (SSTI) issue in the Utils::isDangerousFunction() function. A remote administrator can send a specially crafted request and execute arbitrary code on the target system.
2) Code Injection (CVE-ID: CVE-2023-30593)
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to Server Side Template Injection (SSTI) issue in the Utils::isDangerousFunction() function. A remote administrator can send a specially crafted request and execute arbitrary code on the target system.
3) Code Injection (CVE-ID: CVE-2023-30594)
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to Server Side Template Injection (SSTI) issue in the Utils::isDangerousFunction() function. A remote administrator can send a specially crafted request and execute arbitrary code on the target system.
4) Code Injection (CVE-ID: CVE-2023-34253)
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to Server Side Template Injection (SSTI) issue via denylist bypass. A remote administrator can send a specially crafted request and execute arbitrary code on the target system.
5) Input validation error (CVE-ID: CVE-2023-34448)
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to Server-side Template Injection (SSTI) issue in the Twig Default Filters. A remote administrator can pass specially crafted input to the application and execute arbitrary code on the system.
6) Incomplete List of Disallowed Inputs (CVE-ID: CVE-2023-34252)
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to Server-side Template Injection (SSTI) issue in filterFilter. A remote administrator can execute arbitrary code on the system.
7) Code Injection (CVE-ID: CVE-2023-34251)
The vulnerability allows a remote user to execute arbitrary code on the target system.
The vulnerability exists due to Server Side Template Injection (SSTI) issue in the admin screen. A remote administrator can send a specially crafted request and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Remediation
Install update from vendor's website.
References
- https://github.com/getgrav/grav/security/advisories/GHSA-j3v8-v77f-fvgm
- https://github.com/twigphp/Twig/blob/v1.44.7/src/Environment.php#L148
- https://github.com/getgrav/grav/security/advisories/GHSA-whr7-m3f8-mpm8
- https://www.github.com/getgrav/grav/commit/9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83
- https://github.com/getgrav/grav/commit/8c2c1cb72611a399f13423fc6d0e1d998c03e5c8
- https://huntr.dev/bounties/3ef640e6-9e25-4ecb-8ec1-64311d63fe66/
- https://github.com/getgrav/grav/blob/1.7.40/system/src/Grav/Common/Twig/Extension/GravExtension.php#L1692-L1698
- https://github.com/getgrav/grav/security/advisories/GHSA-96xv-rmwj-6p9w
- https://github.com/getgrav/grav/blob/1.7.40/system/src/Grav/Common/Utils.php#L1956-L2074
- https://github.com/getgrav/grav/commit/244758d4383034fe4cd292d41e477177870b65ec
- https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5
- https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174
- https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5