Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-62237 CVE-2026-62672EUVD-2026-45083GHSA-6gqg-9qjp-56jm

Grav < 2.0.4 ReDoS via regex_replace in Sandbox

Published Jul 17, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
getgrav grav < 2.0.4 2.0.4

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist getgrav/grav < 2.0.4 2.0.4 GHSA-37f3-6p89-6qr9

References