Unrated severityNVD Advisory· Published Jul 17, 2026· Updated Jul 21, 2026
Grav < 2.0.4 ReDoS via regex_replace in Sandbox
CVE-2026-62237
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.
Affected products
1Patches
Vulnerability mechanics
References
2- github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9mitrevendor-advisory
- www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandboxmitrethird-party-advisory
News mentions
0No linked articles in our index yet.