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…
EPSS 0.4%top 64%

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 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

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/24/2026, 22:37:22 UTC

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.

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/24/2026, 22:37:22 UTC

Last updated: 08/30/2026, 10:52:10 UTC

Views: 98

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