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

Grav: Authenticated ReDoS via regex_replace in Twig 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 is a file-based Web platform. Prior to 2.0.4, Grav allowlists the regex_replace filter and function in system/config/security.yaml, and GravExtension::regexReplace() passes an editor-controlled pattern directly to preg_replace(). When security.twig_content.process_enabled is enabled, an authenticated page editor can publish a catastrophically backtracking pattern that consumes PHP worker CPU and denies service to site visitors. This issue is fixed in version 2.0.4.

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 3

GitHub · getgrav/grav