CVE-2022-2073
PHP vulnerability analysis and mitigation

Overview

Code Injection vulnerability (CVE-2022-2073) was discovered in GitHub repository getgrav/grav prior to version 1.7.34. The vulnerability was related to the Twig |filter() function allowing code execution (CVE Details, MITRE).

Technical details

The vulnerability was found in the Twig template engine's |filter() function implementation within the Grav CMS. The issue allowed for potential code execution through unsafe filtering operations. A fix was implemented in commit 9d6a2dba09fd4e56f5cdfb9a399caea355bfeb83, which added security checks to prevent dangerous function execution through the filter (GitHub Commit).

Impact

The vulnerability could allow attackers to execute arbitrary code through the Twig template engine's filter function, potentially compromising the security of the affected Grav CMS installations (Huntr).

Mitigation and workarounds

The vulnerability was fixed in Grav version 1.7.34. The fix includes implementing additional security checks in the Twig filter function to prevent execution of dangerous functions. Users should upgrade to version 1.7.34 or later to mitigate this vulnerability (GitHub 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-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025

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