Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.8
CVE-2026-62237: Grav pages can be used to freeze the site
CVE-2026-62237 · published 3 months ago
Summary
In versions of Grav before 2.0.4, a page editor could add a specially crafted pattern that makes the server work endlessly, blocking visitors from accessing the site. This happens when a certain processing option is turned on. Updating Grav to version 2.0.4 removes the unsafe behavior and restores normal operation.
What to do
- Update getgrav grav to version 2.0.4.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | getgrav | grav | < 2.0.4 |
| composer | getgrav | grav |
< 2.0.4 Fix: upgrade to 2.0.4
|
Original advisory text
Grav < 2.0.4 ReDoS via regex_replace in Sandbox
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.
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62237... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-62237 Vendor Advisory
- https://www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandbox Vendor Advisory
- https://github.com/getgrav/grav Product
- https://nvd.nist.gov/vuln/detail/CVE-2026-62672
- https://github.com/advisories/GHSA-37f3-6p89-6qr9
- https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9 Vendor Advisory
- https://github.com/getgrav/grav/commit/907116268ad4f48be7472c57f64981918578599a
- https://github.com/getgrav/grav/releases/tag/2.0.4
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Severity
7.8
High
Type
CWE-1333Inefficient Regular Expression Complexity (ReDoS)
Timeline
Published17 Jul 2026
Updated4 Nov 2026
First seen19 Aug 2026
Track software like this
Free during beta