{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-62237","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-07-13T16:41:09.007Z","datePublished":"2026-07-17T00:07:11.756Z","dateUpdated":"2026-07-21T01:22:52.319Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-07-17T00:07:11.756Z"},"datePublic":"2026-06-29T00:00:00.000Z","title":"Grav < 2.0.4 ReDoS via regex_replace in Sandbox","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-1333","description":"Inefficient Regular Expression Complexity","type":"CWE"}]}],"affected":[{"vendor":"getgrav","product":"grav","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","versionType":"semver","lessThan":"2.0.4"},{"version":"2.0.4","status":"unaffected","versionType":"semver"}],"repo":"https://github.com/getgrav/grav"}],"cpeApplicability":[{"nodes":[{"operator":"OR","cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:getgrav:grav:*:*:*:*:*:*:*:*","versionEndExcluding":"2.0.4"}]}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":6,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","version":"3.1","baseSeverity":"MEDIUM","baseScore":6.5,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","name":"GitHub Security Advisory (GHSA-37f3-6p89-6qr9)","tags":["vendor-advisory"]},{"name":"VulnCheck Advisory: Grav < 2.0.4 ReDoS via regex_replace in Sandbox","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/grav-redos-via-regex-replace-in-sandbox"}],"credits":[{"lang":"en","value":"gemstone-source","type":"reporter"},{"lang":"en","value":"drpr0grammer","type":"reporter"}],"x_generator":{"engine":"vulncheck-endgame"},"tags":["x_open-source"]},"adp":[{"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-37f3-6p89-6qr9","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-21T01:22:23.036235Z","id":"CVE-2026-62237","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-07-21T01:22:52.319Z"}}]}}