CVE-2026-62237

Medium

Description

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductGetgrav/grav
PublishedJul 17, 2026
First seenJul 17, 2026
Weakness typeCWE-1333CWE-1333

How to fix

Update
  • getgrav/grav2.0.4 or later

Affected products

ProductAffected versionsFixed in
getgrav/gravPackagistv < 2.0.42.0.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.