High severity · published Jun 14, 2023
CVE-2023-34251
Grav is a flat-file content management system
7.2
CVSS
2.3%
EPSS
No
On KEV
Description
Grav is a flat-file content management system. Versions prior to 1.7.42 are vulnerable to server side template injection. Remote code execution is possible by embedding malicious PHP code on the administrator screen by a user with page editing privileges. Version 1.7.42 contains a fix for this issue.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.3% · higher than 84% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GR
Grav · Getgrav
before 1.7.42 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-34251
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-34251
Vendor Advisory
https://github.com/getgrav/grav/blob/develop/system/src/Grav/Common/Twig/Extension/GravExtension.php#L174
Patch
https://github.com/getgrav/grav/commit/9d01140a63c77075ef09b26ef57cf186138151a5
Exploit
https://github.com/getgrav/grav/security/advisories/GHSA-f9jf-4cp4-4fq5
More from Grav
9.9
CVE-2024-34082
Grav is a file-based Web platform
9.8
CVE-2026-80203
Grav before 1.0.18 Authentication Bypass via Scoped API Key
9.8
CVE-2026-56710
Grav Login Plugin before 1.0.16 Privilege Escalation via Unlock
9.8
CVE-2026-65008
Grav before 2.0.7 Remote Code Execution via Blueprint dynamicData
9.8
CVE-2021-47812
GravCMS 1.10.7 - Arbitrary YAML Write/Update (Unauthenticated) (2)
