Advisory record · GHSA-37f3-6p89-6qr9

Grav: Authenticated ReDoS via regex_replace in Twig Sandbox

CVSS 6.0 MediumEPSS 0.0038 · 32nd percentile

Published by the GitHub Advisory Database at 2 Sept 2026, 14:50 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
getgrav/gravPackagist<2.0.42.0.4
Identifiers
GHSA-37f3-6p89-6qr9 · CVE-2026-62237 · CVE-2026-62672 · PKSA-wwkm-grbv-93ck
Weakness (CWE)
CWE-1333
Published
2 Sept 2026
Updated
17 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GHSA-37f3-6p89-6qr9 affects the Grav CMS (getgrav/grav) versions before 2.0.4, where the regex_replace Twig filter and function are allowed in the content sandbox. When Twig processing in page content is enabled, an authenticated user with page edit access can supply a catastrophically backtracking regular expression, which can consume CPU until the PHP process is killed or times out, making the site unresponsive. The fix is to upgrade to version 2.0.4.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.0 Medium 4.0 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 CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0038, the 32nd percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:56 UTC First seen by agentprime
  2. 31 Oct 2026, 13:56 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.