CVE-2026-62672
Published:August 19, 2026
Updated:September 24, 2026
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.
Affected Packages
https://github.com/getgrav/grav.git (GITHUB):
Affected version(s) >=0.1.0 <2.0.4Fix Suggestion:
Update to version 2.0.4getgrav/grav (PHP):
Affected version(s) >=dev-add-claude-github-actions-1770170196497 <2.0.4Fix Suggestion:
Update to version 2.0.4getgrav/grav (PHP):
Affected version(s) >=dev-add-claude-github-actions-1770170196497 <2.0.4Fix Suggestion:
Update to version 2.0.4Related Resources (6)
Do you need more information?
Contact UsCVSS v4
Base Score:
6
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Inefficient Regular Expression Complexity
EPSS
Base Score:
0.39