CyberRota Analysis
AI-GeneratedGrav, a file-based web platform, is vulnerable to a denial-of-service attack due to improper handling of regex patterns in its configuration prior to version 2.0.4. An authenticated page editor can exploit this flaw by publishing a malicious regex pattern that leads to excessive CPU consumption, impacting site availability. Organizations using Grav should prioritize upgrading to version 2.0.4 or later to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
Grav is a file-based Web platform. Prior to 2.0.4, Grav allowlists the regex_replace filter and function in system/config/security.yaml, and GravExtension::regexReplace() passes an editor-controlled pattern directly to preg_replace(). When security.twig_content.process_enabled is enabled, an authenticated page editor can publish a catastrophically backtracking pattern that consumes PHP worker CPU and denies service to site visitors. This issue is fixed in version 2.0.4.