CVE-2026-62237 MEDIUM

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

Vendor Getgrav
Product grav
Weakness CWE-1333
Published July 17, 2026
Last update July 21, 2026

CVSS base score

6.0/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 17, 2026 CVE published
July 21, 2026 Record updated