CVE Catalog

CVE-2026-62237

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.25%

16th percentile - higher than 16% of all known CVEs

Summary

Grav before version 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 (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.

Risk Assessment

The risk is that an authenticated user with page editor privileges can intentionally overload the server, causing the site to become unavailable to other users. However, the vulnerability is limited because it requires the optional Twig processing feature to be enabled.

Recommendation

Immediately upgrade Grav to version 2.0.4 or later. If upgrading is not possible, disable the security.twig_content.process_enabled option in the configuration to block the attack vector.

Other vulnerabilities in Grav

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS