CVE-2026-62237: Inefficient Regular Expression Complexity in getgrav grav
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.
AI Analysis
Technical Summary
CVE-2026-62237 describes a ReDoS vulnerability in Grav CMS before version 2.0.4. The issue exists in the regex_replace filter and function, which are allowlisted in the Twig content sandbox. When the configuration option security.twig_content.process_enabled is set to true, an authenticated page editor can supply a malicious PCRE pattern that triggers catastrophic backtracking in PHP's preg_replace(), leading to unbounded CPU usage and denial of service of the web server process. This vulnerability requires authentication and is not exploitable via unauthenticated users. The vulnerability is documented with a CVSS 4.0 score of 6.0 (medium severity). No vendor advisory or patch information is provided in the input.
Potential Impact
An authenticated page editor can cause a denial of service on the web server hosting Grav by supplying a crafted regular expression pattern that triggers catastrophic backtracking in PHP's preg_replace() function. This results in excessive CPU consumption, potentially making the web server unresponsive. The vulnerability does not affect confidentiality, integrity, or availability beyond denial of service and requires authentication to exploit.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider disabling Twig content processing in page content by ensuring the configuration security.twig_content.process_enabled is set to false (default setting). Restrict authenticated page editor privileges to trusted users only to reduce risk.
CVE-2026-62237: Inefficient Regular Expression Complexity in getgrav grav
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.
CVSS v4.0
Score 6.0medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-62237 describes a ReDoS vulnerability in Grav CMS before version 2.0.4. The issue exists in the regex_replace filter and function, which are allowlisted in the Twig content sandbox. When the configuration option security.twig_content.process_enabled is set to true, an authenticated page editor can supply a malicious PCRE pattern that triggers catastrophic backtracking in PHP's preg_replace(), leading to unbounded CPU usage and denial of service of the web server process. This vulnerability requires authentication and is not exploitable via unauthenticated users. The vulnerability is documented with a CVSS 4.0 score of 6.0 (medium severity). No vendor advisory or patch information is provided in the input.
Potential Impact
An authenticated page editor can cause a denial of service on the web server hosting Grav by supplying a crafted regular expression pattern that triggers catastrophic backtracking in PHP's preg_replace() function. This results in excessive CPU consumption, potentially making the web server unresponsive. The vulnerability does not affect confidentiality, integrity, or availability beyond denial of service and requires authentication to exploit.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider disabling Twig content processing in page content by ensuring the configuration security.twig_content.process_enabled is set to false (default setting). Restrict authenticated page editor privileges to trusted users only to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-13T16:41:09.007Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a59784368715ace4305da80
Added to database: 07/17/2026, 00:33:07 UTC
Last enriched: 07/24/2026, 22:37:22 UTC
Last updated: 08/30/2026, 10:52:10 UTC
Views: 98
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.