{"id":"CVE-2026-62672","state":"PUBLISHED","title":"Grav: Authenticated ReDoS via regex_replace in Twig Sandbox","description":"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.","publishedAt":"2026-08-19T15:44:36.287Z","updatedAt":"2026-08-19T18:00:39.622Z","severity":{"score":6,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["getgrav grav"],"affected":[{"vendor":"getgrav","product":"grav","versions":[{"version":"< 2.0.4","status":"affected"}]}],"references":["https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","https://github.com/getgrav/grav/commit/907116268ad4f48be7472c57f64981918578599a","https://github.com/getgrav/grav/releases/tag/2.0.4"],"weaknesses":["CWE-1333"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/62xxx/CVE-2026-62672.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-62672","state":"PUBLISHED","datePublished":"2026-08-19T15:44:36.287Z","dateUpdated":"2026-08-19T18:00:39.622Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-14T20:22:04.394Z"},"containers":{"cna":{"title":"Grav: Authenticated ReDoS via regex_replace in Twig Sandbox","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"getgrav","product":"grav","versions":[{"version":"< 2.0.4","status":"affected"}]}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","name":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/getgrav/grav/commit/907116268ad4f48be7472c57f64981918578599a","name":"https://github.com/getgrav/grav/commit/907116268ad4f48be7472c57f64981918578599a","tags":["x_refsource_MISC"]},{"url":"https://github.com/getgrav/grav/releases/tag/2.0.4","name":"https://github.com/getgrav/grav/releases/tag/2.0.4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1333","lang":"en","description":"CWE-1333: Inefficient Regular Expression Complexity","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-08-19T15:44:36.287Z"},"source":{"advisory":"GHSA-37f3-6p89-6qr9","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-19T18:00:33.930663Z","id":"CVE-2026-62672","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-19T18:00:39.622Z"}}]}}}