Input validation error in Grav CMS - CVE-2023-34448
Published: June 19, 2023
Vulnerability identifier: #VU77509
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2023-34448
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: Grav CMS
Affected software:
Grav CMS
Grav CMS
Detailed vulnerability description
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.
How to mitigate CVE-2023-34448
Install updates from vendor's website.
Sources
- 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/