Skip to main content
← All vulnerabilities
CVE-2026-62237GHSA-37F3-6P89-6QR9

Grav < 2.0.4 ReDoS via regex_replace in Sandbox

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • getgrav grav

    fixed in 2.0.4

  • getgrav/gravPackagist

    fixed in 2.0.4

References 2

GitHub · getgrav/grav

vulncheck.com