Back to overview

CVE-2026-62237

MEDIUM
6.5
CVSS 3.1
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.

Metadata

CVE ID
CVE-2026-62237
State
PUBLISHED
Assigner
VulnCheck
Reserved
2026-07-13 16:41 UTC
Published
2026-07-17 00:07 UTC
Last updated
2026-07-17 00:07 UTC
Primary CWE
CWE-1333
Inefficient Regular Expression Complexity
Vendor / Product
getgrav / grav
Sources
cve.org  ·  NVD

Severity & Metrics

6.5 MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected products (1)
VendorProductPlatformVersions
getgrav grav 0 < 2.0.4, 2.0.4
Weakness (CWE)
CWESourceDescription
CWE-1333 cna Inefficient Regular Expression Complexity
CVSS scores (2)
ScoreSeverityVersionSourceVector
6.5 MEDIUM 3.1 cna CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
6.0 MEDIUM 4.0 cna 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
References (2)
Back to overview