{"id":"CVE-2026-62237","title":"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","summary":"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 (securit…","severity":"medium","cvss":6.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-1333"],"vendor":"getgrav","product":"grav","affected":["grav < 2.0.4"],"published":"2026-07-17","updated":"2026-10-08","sourceUpdated":"2026-10-08T16:17:27.103","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-62237","references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandbox","label":"disclosure@vulncheck.com"},{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"tags":["nvd","cve.org","exploit-available"],"exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-21T01:22:23.036235Z"},"epss":0.00436,"epssPercentile":0.35797,"ingestedAt":"2026-10-08T16:52:14.702Z","slug":"CVE-2026-62237","body":"## Overview\n\nGrav 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":48,"depthScoreParts":{"impact":35.8,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[]}