CVE-2026-62237: Inefficient Regular Expression Complexity in getgrav grav
Grav CMS versions prior to 2.0.4 contain a regular expression denial of service (ReDoS) vulnerability in the regex_replace filter and function used within Twig content processing. This vulnerability can be triggered when Twig processing in page content is enabled, allowing an authenticated page editor to supply a crafted regular expression that causes excessive CPU usage and denial of service. The vulnerability arises from catastrophic backtracking in PHP's preg_replace() function. The default setting disables Twig processing, reducing exposure unless explicitly enabled.
AI Analysis
Technical Summary
CVE-2026-62237 is a ReDoS vulnerability affecting Grav CMS before version 2.0.4. It exists in the regex_replace filter and function, which are allowlisted in the Twig content sandbox. When the configuration security.twig_content.process_enabled is set to true, an authenticated page editor can provide a malicious regular expression pattern that triggers catastrophic backtracking in PHP's preg_replace(), leading to unbounded CPU consumption and denial of service of the web server process. The vulnerability requires authentication and explicit enabling of Twig processing in page content.
Potential Impact
An authenticated page editor can cause denial of service by supplying a crafted regular expression that consumes excessive CPU resources during Twig content processing. This results in unavailability of the web server process hosting Grav. The vulnerability does not allow privilege escalation or data disclosure but impacts service availability. The default configuration disables Twig processing, so exposure is limited unless the feature is enabled.
Mitigation Recommendations
Upgrade Grav to version 2.0.4 or later where this vulnerability is fixed. If upgrading is not immediately possible, ensure that the configuration setting security.twig_content.process_enabled remains set to false (the default) to prevent exploitation. Since no official patch or temporary fix details are provided, monitoring vendor advisories for updates is recommended.
CVE-2026-62237: Inefficient Regular Expression Complexity in getgrav grav
Description
Grav CMS versions prior to 2.0.4 contain a regular expression denial of service (ReDoS) vulnerability in the regex_replace filter and function used within Twig content processing. This vulnerability can be triggered when Twig processing in page content is enabled, allowing an authenticated page editor to supply a crafted regular expression that causes excessive CPU usage and denial of service. The vulnerability arises from catastrophic backtracking in PHP's preg_replace() function. The default setting disables Twig processing, reducing exposure unless explicitly enabled.
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 is a ReDoS vulnerability affecting Grav CMS before version 2.0.4. It exists in the regex_replace filter and function, which are allowlisted in the Twig content sandbox. When the configuration security.twig_content.process_enabled is set to true, an authenticated page editor can provide a malicious regular expression pattern that triggers catastrophic backtracking in PHP's preg_replace(), leading to unbounded CPU consumption and denial of service of the web server process. The vulnerability requires authentication and explicit enabling of Twig processing in page content.
Potential Impact
An authenticated page editor can cause denial of service by supplying a crafted regular expression that consumes excessive CPU resources during Twig content processing. This results in unavailability of the web server process hosting Grav. The vulnerability does not allow privilege escalation or data disclosure but impacts service availability. The default configuration disables Twig processing, so exposure is limited unless the feature is enabled.
Mitigation Recommendations
Upgrade Grav to version 2.0.4 or later where this vulnerability is fixed. If upgrading is not immediately possible, ensure that the configuration setting security.twig_content.process_enabled remains set to false (the default) to prevent exploitation. Since no official patch or temporary fix details are provided, monitoring vendor advisories for updates is recommended.
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/17/2026, 00:48:14 UTC
Last updated: 07/17/2026, 00:48:14 UTC
Views: 4
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.