CVE-2026-62237: Grav < 2.0.4 ReDoS via regex_replace in Sandbox

Published Jul 17, 2026
·
Updated

Grav before 2.0.4 contains a regular expression denial of service (ReDoS) vulnerability in the regexreplace filter and function, which are allowlisted in the Twig content sandbox. When Twig processing in page content is enabled (security.twigcontent.processenabled: true, disabled by default), an authenticated page editor can supply a catastrophically backtracking PCRE pattern that is passed directly to PHP's pregreplace(), causing unbounded CPU consumption and denial of service to the web server process.

Affected Software

1 affected component
Grav Grav<2.0.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Grav to a version that resolves this vulnerability.

    Fixed in 2.0.4
  2. Configuration

    Disable Twig content processing to prevent user-supplied patterns from reaching the regex_replace filter/function (set security.twig_content.process_enabled to false; it is disabled by default).

    Grav Twig content sandbox security.twig_content.process_enabled = false

Event History

Jul 17, 2026
CVE Published
via MITRE·12:07 AM
Data Sourced
via MITRE·12:07 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:18 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-62237?

CVE-2026-62237 has a medium severity rating of 6.5.

2

How do I fix CVE-2026-62237?

To fix CVE-2026-62237, upgrade Grav to version 2.0.4 or later.

3

What is the impact of CVE-2026-62237?

CVE-2026-62237 allows for a regular expression denial of service (ReDoS) vulnerability, potentially causing server performance issues.

4

Is CVE-2026-62237 exploitable in all configurations?

CVE-2026-62237 is only exploitable if Twig processing in page content is enabled.

5

Which version of Grav is affected by CVE-2026-62237?

Grav versions prior to 2.0.4 are affected by CVE-2026-62237.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203