CVE-2023-34251
PHP vulnerability analysis and mitigation

Overview

Grav, a flat-file content management system, was found to contain a critical Server Side Template Injection (SSTI) vulnerability (CVE-2023-34251) affecting versions prior to 1.7.42. The vulnerability was discovered and reported through GitHub's Bug Bounty program by security researcher scgajge12. This vulnerability allows remote code execution by embedding malicious PHP code on the administrator screen by users with page editing privileges (GitHub Advisory).

Technical details

The vulnerability is classified as a Server Side Template Injection (SSTI) with a CVSS v3.1 base score of 9.9 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) according to GitHub's assessment, while NVD rates it at 7.2 HIGH. The vulnerability is tracked as CWE-94 (Improper Control of Generation of Code) and affects the Twig template engine implementation in Grav CMS (NVD).

Impact

When exploited, this vulnerability allows attackers with page editing privileges to execute arbitrary system commands through the administrator interface. This could lead to complete system compromise, allowing attackers to access sensitive data, modify system files, and potentially gain full control over the affected server (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Grav version 1.7.42. Users are strongly advised to upgrade to this version or later to protect against this security issue. The fix includes additional validation for the Twig map filter to prevent execution of dangerous functions (Grav Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-61676MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2025-61674MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2026-21896MEDIUM5.8
  • PHPPHP
  • getkirby/cms
NoYesJan 08, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management