Vulnerability in Getgrav Grav
CVE-2026-62237
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
EPSS: 0.004 (36.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Getgrav Grav — versions 0, 2.0.4
Weakness classification (CWE)
References
- disclosure@vulncheck.com (vendor-advisory)
- disclosure@vulncheck.com (third-party-advisory)
Frequently asked questions
- What is CVE-2026-62237?
- CVE-2026-62237 is a medium-severity vulnerability in Getgrav Grav, classified under Inefficient Regular Expression Complexity. CVSS score: 6.5/10. Published 2026-07-17.
- How severe is CVE-2026-62237?
- Medium severity. CVSS v3 base score is 6.5 out of 10.