Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-62237: Inefficient Regular Expression Complexity in getgrav grav

0
Medium
VulnerabilityCVE-2026-62237cvecve-2026-62237
Published: 07/17/2026 (07/17/2026, 00:07:11 UTC)
Source: CVE Database V5
Vendor/Project: getgrav
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →cve
grav
pkg:github/grav
Affected versions
<2.0.4

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

AILast updated: 07/17/2026, 00:48:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses