CVE-2026-62237
published medium CVSS 4.0 · 6.0Grav < 2.0.4 ReDoS via regex_replace in Sandbox
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| getgrav | — | grav0 to < 2.0.4 (affected · semver) · 2.0.4 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| getgrav | grav | 0 to < 2.0.4 (affected · semver)2.0.4 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-1333 Inefficient Regular Expression Complexity
References
2- GitHub Security Advisory (GHSA-37f3-6p89-6qr9) https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9
- VulnCheck Advisory: Grav < 2.0.4 ReDoS via regex_replace in Sandbox https://www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandbox
Provider assertions
2VulnCheck · cna
Grav < 2.0.4 ReDoS via regex_replace in Sandbox
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 173881865d774f966d15bd3b85735359506c0a7abed330bbda0f92e822ff1c76
- Ingested
- 09 Oct 2026, 16:32:33 UTC
- Source record
- Official CVE record