{"id":"CVE-2026-62237","published":"2026-07-17T00:07:11Z","modified":"2026-10-08T15:23:44Z","title":"Grav < 2.0.4 ReDoS via regex_replace in Sandbox","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00436,"percentile":0.29712,"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":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandbox","tags":["third-party-advisory"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":5.94},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 2.0.4"]}],"fixedVersions":[{"vendor":"getgrav","product":"grav","versions":["2.0.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-21T01:22:23.036235Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-45083","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-getgrav-grav-cve-2026-62237","children":[{"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"}]}]}}