PT-2023-24777 · Grav · Grav

Jacobsoo

·

Published

2023-06-14

·

Updated

2023-06-23

·

CVE-2023-34253

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Grav versions prior to 1.7.42
Description The issue concerns a flat-file content management system where the denylist, introduced to prevent the execution of dangerous functions via malicious template injection, was insufficient. This allowed a low-privileged attacker with login access to the Grav Admin panel and page creation/update permissions to inject malicious templates, potentially leading to remote code execution. The denylist could be subverted in multiple ways, including using unsafe functions not banned, using capitalized callable names, and using fully-qualified names for referencing callables.
Recommendations For versions prior to 1.7.42, update to version 1.7.42 to improve the denylist and prevent the execution of dangerous functions via malicious template injection.

Exploit

Fix

RCE

Incomplete List of Disallowed Inputs

Code Injection

Weakness Enumeration

Related Identifiers

CVE-2023-34253
GHSA-J3V8-V77F-FVGM

Affected Products

Grav