{"id":"CVE-2026-62672","published":"2026-08-19T15:44:36Z","modified":"2026-08-19T18:00:39Z","title":"Grav: Authenticated ReDoS via regex_replace in Twig Sandbox","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"Grav is a file-based Web platform. Prior to 2.0.4, Grav allowlists the regex_replace filter and function in system/config/security.yaml, and GravExtension::regexReplace() passes an editor-controlled pattern directly to preg_replace(). When security.twig_content.process_enabled is enabled, an authenticated page editor can publish a catastrophically backtracking pattern that consumes PHP worker CPU and denies service to site visitors. This issue is fixed in version 2.0.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00381,"percentile":0.33014,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/907116268ad4f48be7472c57f64981918578599a","tags":["x_refsource_MISC"]},{"url":"https://github.com/getgrav/grav/releases/tag/2.0.4","tags":["x_refsource_MISC"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":6.6},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 2.0.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-19T18:00:33.930663Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"getgrav/grav","vulnerableRanges":["<2.0.4"],"patched":["2.0.4"],"from":["GHSA-37f3-6p89-6qr9"],"provenance":"source"}],"summary":{"text":"Grav, a file-based web platform from getgrav, has a flaw in its Twig sandbox where the regex_replace filter and function pass an editor-supplied pattern directly to preg_replace(), and this occurs when the security.twig_content.process_enabled setting is turned on. An attacker with page editor credentials and network access can publish a regular expression that backtracks catastrophically, consuming PHP worker CPU and denying service to site visitors, with the attack requiring that this Twig content processing option be enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:35Z"},"euvd":{"id":"EUVD-2026-62542","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-getgrav-grav-cve-2026-62237","parents":[{"from":"CVE-2026-62237","to":"CVE-2026-62672","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-37f3-6p89-6qr9","via":"reference","url":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9"},{"kind":"similar","provenance":"machine","score":0.54,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-61449","published":"2026-07-15","fixed":"2.0.2","kev":false},{"cve":"CVE-2026-61842","published":"2026-08-19","fixed":"2.0.2","kev":false,"link":{"from":"CVE-2026-61842","to":"CVE-2026-62672","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.2","toFixed":"2.0.4","daysApart":0},{"kind":"same-code","provenance":"machine","files":["system/src/Grav/Common/Twig/Extension/GravExtension.php"],"commits":["https://github.com/getgrav/grav/commit/7efe70574e4cf01a251318478c13673029e93eb6","https://github.com/getgrav/grav/commit/907116268ad4f48be7472c57f64981918578599a"],"basis":"shared file"}]}},{"cve":"CVE-2026-62669","published":"2026-08-19","fixed":"2.0.4","kev":false},{"cve":"CVE-2026-62672","published":"2026-08-19","fixed":"2.0.4","kev":false},{"cve":"CVE-2026-62673","published":"2026-08-19","fixed":"2.0.4","kev":false},{"cve":"CVE-2026-64850","published":"2026-08-19","fixed":"2.0.7","kev":false,"link":{"from":"CVE-2026-62672","to":"CVE-2026-64850","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:getgrav/grav","fromFixed":"2.0.4","toFixed":"2.0.7","daysApart":0}]}},{"cve":"CVE-2026-65608","published":"2026-07-23","fixed":"2.0.9","kev":false}],"package":"Packagist:getgrav/grav"}}