CVE-2026-62237CWE-1333

CVE-2026-62237

Medium · published July 17, 2026

CVSS v3.1
6.5
EPSS
0%
Percentile
21.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00301 · 21.6th percentile
Weakness
CWE-1333 · Inefficient Regular Expression Complexity
Published
2026-07-17T06:18Z
References (3)
EPSS history
Timeline
  • 17 JUL 00:07Z
    Grav < 2.0.4 ReDoS via regex_replace in Sandbox
    cvelistv5