CVE-2026-62237
6
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| getgrav | grav | 0 < 2.0.4 | affected |
| getgrav | grav | 2.0.4 | unaffected |
Weaknesses
- CWE-1333: Inefficient Regular Expression Complexity
References
- https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9
- https://www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandbox
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.