What’s Vulnerable › Vulnerabilities
CVE-2026-62237: Grav < 2.0.4 ReDoS via regex_replace in Sandbox
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-17 · updated 2026-10-24
- Weakness: CWE-1333
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
- getgrav grav: before 2.0.4 — fixed in 2.0.4
How to fix
Upgrade to a fixed version: getgrav grav 2.0.4. Check the vendor advisory for mitigations.
References
- https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9
- https://www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandbox
- https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9
Get alerted when CVE-2026-62237 or the next vulnerability affects your stack