CVE-2026-62237
MEDIUM
6.5
CVSS 3.1
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.
Metadata
Severity & Metrics
6.5
MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| getgrav | grav | — | 0 < 2.0.4, 2.0.4 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-1333 | cna | Inefficient Regular Expression Complexity |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 6.5 | MEDIUM | 3.1 | cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| 6.0 | MEDIUM | 4.0 | cna | 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 |
References (2)
- GitHub Security Advisory (GHSA-37f3-6p89-6qr9) https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9
- VulnCheck Advisory: Grav < 2.0.4 ReDoS via regex_replace in Sandbox https://www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandbox