CVE-2026-62237 Grav < 2.0.4 ReDoS via regex_replace in Sandbox
MediumCVSS 6.0
EPSS 0.44%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- PHP
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| getgrav/grav | < 2.0.4 | 2.0.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| getgrav/grav | < 2.0.4 | 2.0.4 |
References
- GitHub Security Advisory (GHSA-37f3-6p89-6qr9) exploit vendor-advisory
- VulnCheck Advisory: Grav < 2.0.4 ReDoS via regex_replace in Sandbox third-party-advisory
- ENISA EUVD EUVD-2026-45083 third-party-advisory