CVE-2026-62672

MEDIUM CVSS 4.0: 6.0 EPSS 0.38%
Updated Sep 10, 2026
PHP
Parameter Value
CVSS 6.0 (MEDIUM)
Fixed In 2.0.4
Type CWE-1333 (Inefficient Regular Expression Complexity / ReDoS)
Vendor PHP
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v4.0