CVE-2026-62237

MEDIUM CVSS 4.0: 6.0 EPSS 0.30%
Updated Oct 24, 2026
PHP
Parameter Value
CVSS 6.0 (MEDIUM)
Affected Versions before 2.0.4
Type CWE-1333 (Inefficient Regular Expression Complexity / ReDoS)
Vendor PHP
Public PoC No

Grav before 2.0.4 contains a regular expression denial of service (ReDoS) vulnerability in the regex_replace filter and function, which are allowlisted in the Twig content sandbox. When Twig processing in page content is enabled (security.twig_content.process_enabled: true, disabled by default), an authenticated page editor can supply a catastrophically backtracking PCRE pattern that is passed directly to PHP's preg_replace(), causing unbounded CPU consumption and denial of service to the web server process.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy 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