CVE-2026-62237

published 17 Jul 2026 · updated 8 Oct 2026

Grav < 2.0.4 ReDoS via regex_replace in Sandbox

6.5MediumCVSS 6.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.0.4.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<2.0.42.0.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-62237 severity on Zeptric[![CVE-2026-62237](https://zeptric.io/badge/cve/CVE-2026-62237.svg)](https://zeptric.io/cve/CVE-2026-62237)