Skip to main content

Grav CMS EUVDEUVD-2026-45083

| CVE-2026-62237 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-07-17 VulnCheck GHSA-6gqg-9qjp-56jm
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate as page editor
  2. Delivery
    Enable or confirm Twig content processing is active
  3. Exploit
    Craft Twig template with malicious PCRE in regex_replace
  4. Install
    Submit page content to Grav
  5. C2
    preg_replace() enters catastrophic backtracking
  6. Execute
    Web server worker CPU exhausted
  7. Impact
    Service unavailable

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Two conditions must both be true for exploitation: (1) The Grav security setting security.twig_content.process_enabled must be set to true - this is explicitly disabled by default and requires deliberate administrator action to enable. (2) The attacker must hold at least a page-editor-level account on the target Grav installation (CVSS PR:L). There is no path to unauthenticated exploitation. Exploitation is further limited to the regex_replace Twig filter/function specifically, which is the allowlisted entry point into PCRE. What limits exploitation: the non-default configuration gate is the primary hard barrier - most Grav deployments are not affected without specific configuration changes; additionally, editor-level authentication prevents anonymous exploitation. PHP's max_execution_time setting will eventually terminate a runaway preg_replace() call but does not prevent the DoS within that window.

Impact

The CVSS 4.0 score of 6.0 is fair and appropriately modulated by AT:P (attack requirements present), reflecting that the non-default Twig content processing setting must be enabled. The network attack vector and low privilege requirement mean exploitation is straightforward for anyone holding a page-editor account on an affected instance - no complex payload delivery or privilege escalation is needed beyond that baseline. EPSS data was not provided, but the gating conditions (non-default config + authenticated editor) substantially reduce the realistic exploitation population. No KEV listing and no known POC further suggest opportunistic mass exploitation is not occurring. The practical risk is highest for multi-tenant Grav installations - hosted CMS platforms or educational/agency environments - where untrusted users may hold page-editor roles and where Twig content processing has been intentionally enabled. Single-operator personal sites are lower risk by posture even if technically vulnerable. The CVSS vector is internally consistent with the description; no conflicting signals are present.

Exploit ScenarioDerived

An attacker with a page-editor account on a Grav instance where security.twig_content.process_enabled: true is configured submits a page containing a regex_replace call with a PCRE pattern designed for catastrophic backtracking - for example, a pattern like /(a+)+$/ against a long non-matching string. When Grav processes the page, PHP's preg_replace() enters exponential backtracking, consuming 100% of a CPU core for the duration of the request or until the PHP execution time limit is hit; repeated requests across multiple editor accounts or rapid re-submission can exhaust all worker processes and render the site unavailable. No public proof-of-concept has been identified, but the technique is well-understood and trivially reproducible from published ReDoS literature.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 17, 2026

ReDoS in Grav CMS's Twig sandbox allows an authenticated page editor to crash the web server process via a catastrophically backtracking PCRE pattern supplied to the regex_replace filter. Affected versions are all Grav releases prior to 2.0.4. Exploitation requires a non-default configuration (security.twig_content.process_enabled: true) and at least page-editor-level authentication, limiting blast radius to deployments that have deliberately unlocked Twig processing in page content. No public exploit code or CISA KEV listing has been identified at time of analysis.

RemediationAI

The primary fix is to upgrade Grav to version 2.0.4 or later, as confirmed by the vendor security advisory at https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9. If an immediate upgrade is not possible, the most effective compensating control is to ensure security.twig_content.process_enabled remains set to false (its default value) in the Grav configuration - this completely blocks the attack path by preventing user-supplied content from being processed as Twig templates. The trade-off is that any legitimate Twig templating in page content will cease to function. Additionally, administrators should audit whether any page-editor-role accounts belong to untrusted or external users, and if so, consider demoting them until the patch is applied. There is no known way to safely permit process_enabled: true without patching, since the underlying PCRE passthrough is the root cause.

Affected VersionsENISA

grav 0 <2.0.4

Affected Packages

composer getgrav/grav fix: 2.0.4
euvd grav fix: 2.0.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Grav (CPE: cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*) is a PHP-based flat-file CMS that uses Twig as its templating engine. The vulnerability stems from CWE-1333 (Inefficient Regular Expression Complexity): the regex_replace Twig filter and function are allowlisted inside Grav's Twig content sandbox and pass user-controlled PCRE patterns directly to PHP's native preg_replace(). PHP's PCRE engine uses recursive backtracking that, when given a pattern with ambiguous quantifiers on overlapping character classes, can degrade to exponential time complexity - consuming all available CPU before returning a result. Because preg_replace() executes synchronously within the PHP web worker process, a single crafted request is sufficient to block that worker indefinitely, effectively removing it from the server pool.

Know when Grav gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.0 MEDIUM
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
vuln.today AI 6.5 MEDIUM

Network vector with low-privilege authentication required; no confidentiality or integrity impact; high availability impact via CPU exhaustion of the web worker process.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 17, 2026 - 02:32 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
niche flat-file PHP CMS, limited enterprise footprint
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Related Vulnerabilities in Grav CMS Access Control and Injection Vulnerabilities

View all 4

More in Grav

View all
CVE-2025-66294 HIGH POC
8.7 Dec 01

Server-side template injection (SSTI) in Grav (getgrav/grav) prior to 1.8.0-beta.27 allows an authenticated attacker hol

CVE-2025-66301 HIGH POC
8.6 Dec 01

Broken access control in Grav CMS (CWE-285) before 1.8.0-beta.27 lets an authenticated editor-level user escalate their

CVE-2025-50286 HIGH POC
8.1 Aug 06

A Remote Code Execution (RCE) vulnerability in Grav CMS v1.7.48 allows an authenticated admin to upload a malicious plug

CVE-2024-34082 CRITICAL POC
9.9 May 15

Grav is a file-based Web platform. Rated critical severity (CVSS 9.9), this vulnerability is remotely exploitable, low a

CVE-2021-47812 CRITICAL POC
9.8 Jan 16

GravCMS 1.10.7 allows unauthenticated remote attackers to write arbitrary YAML configuration files, leading to full serv

CVE-2026-65008 CRITICAL POC
9.3 Jul 21

Remote code execution in Grav CMS 2.0.4 (fixed in 2.0.7) lets an authenticated user holding the admin.pages or api.pages

CVE-2026-75827 CRITICAL POC
9.3 Aug 18

Remote code execution in Grav CMS before 2.0.15 allows attackers holding page-edit or blueprint-config privileges to wri

CVE-2026-75837 CRITICAL POC
9.3 Aug 18

Vertical privilege escalation in Grav CMS before 2.0.14 lets a delegated administrator holding only the admin.users perm

CVE-2026-75828 CRITICAL POC
9.3 Aug 18

Stored cross-site scripting in Grav CMS before 2.0.15 lets authenticated editors smuggle JavaScript event handlers past

CVE-2025-66844 CRITICAL POC
9.1 Dec 15

Server-side request forgery (SSRF) in Grav CMS versions prior to 1.7.49.5 allows remote authenticated attackers to make

CVE-2025-66299 HIGH POC
8.8 Dec 01

Grav is a file-based Web platform. Prior to 1.8.0-beta.27, Grav CMS is vulnerable to a Server-Side Template Injection (S

CVE-2026-72819 HIGH POC
8.7 Aug 14

Remote code execution in Grav CMS before 2.0.13 allows authenticated low-privilege users to plant and execute arbitrary

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy